diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-13 19:58:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-13 19:58:29 +0900 |
| commit | 0a994e5b9885265873e02b3b3ab9add7ec7e7e6b (patch) | |
| tree | 3945fc92b149c00cfd103792a50811ade2bc9eae /src/api/streaming.ts | |
| parent | なんかもうめっちゃ変えた (diff) | |
| download | sharkey-0a994e5b9885265873e02b3b3ab9add7ec7e7e6b.tar.gz sharkey-0a994e5b9885265873e02b3b3ab9add7ec7e7e6b.tar.bz2 sharkey-0a994e5b9885265873e02b3b3ab9add7ec7e7e6b.zip | |
Add access log widget
Diffstat (limited to 'src/api/streaming.ts')
| -rw-r--r-- | src/api/streaming.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/streaming.ts b/src/api/streaming.ts index 0e512fb210..6caf7db3e8 100644 --- a/src/api/streaming.ts +++ b/src/api/streaming.ts @@ -9,6 +9,7 @@ import isNativeToken from './common/is-native-token'; import homeStream from './stream/home'; import messagingStream from './stream/messaging'; import serverStream from './stream/server'; +import requestsStream from './stream/requests'; import channelStream from './stream/channel'; module.exports = (server: http.Server) => { @@ -27,6 +28,11 @@ module.exports = (server: http.Server) => { return; } + if (request.resourceURL.pathname === '/requests') { + requestsStream(request, connection); + return; + } + // Connect to Redis const subscriber = redis.createClient( config.redis.port, config.redis.host); |