diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-11 06:48:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-11 06:48:25 +0900 |
| commit | dc3c80e3cef48bbbb1de2c5d8c6fb462b25de6e0 (patch) | |
| tree | 74f6a2b922bb07c646705aebe7f8908771cf2ef7 /src/server/api/streaming.ts | |
| parent | Update example.yml (diff) | |
| download | sharkey-dc3c80e3cef48bbbb1de2c5d8c6fb462b25de6e0.tar.gz sharkey-dc3c80e3cef48bbbb1de2c5d8c6fb462b25de6e0.tar.bz2 sharkey-dc3c80e3cef48bbbb1de2c5d8c6fb462b25de6e0.zip | |
wip
Diffstat (limited to 'src/server/api/streaming.ts')
| -rw-r--r-- | src/server/api/streaming.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index 2d4cfc108f..e4156096ef 100644 --- a/src/server/api/streaming.ts +++ b/src/server/api/streaming.ts @@ -14,6 +14,7 @@ import othelloGameStream from './stream/othello-game'; import othelloStream from './stream/othello'; import serverStatsStream from './stream/server-stats'; import notesStatsStream from './stream/notes-stats'; +import hashtagsStatsStream from './stream/hashtags-stats'; import requestsStream from './stream/requests'; import { ParsedUrlQuery } from 'querystring'; import authenticate from './authenticate'; @@ -39,6 +40,11 @@ module.exports = (server: http.Server) => { return; } + if (request.resourceURL.pathname === '/hashtags-stats') { + hashtagsStatsStream(request, connection); + return; + } + if (request.resourceURL.pathname === '/requests') { requestsStream(request, connection); return; |