summaryrefslogtreecommitdiff
path: root/src/server/api/streaming.ts
diff options
context:
space:
mode:
authormei23 <m@m544.net>2018-10-09 03:29:11 +0900
committermei23 <m@m544.net>2018-10-09 03:29:11 +0900
commit913385b10d46ae962f370f2fa62fe5ec3837e1ed (patch)
treef74eacf9f636679e7de7361f9a29ca3bfbbec3fd /src/server/api/streaming.ts
parent10.1.0 (diff)
downloadsharkey-913385b10d46ae962f370f2fa62fe5ec3837e1ed.tar.gz
sharkey-913385b10d46ae962f370f2fa62fe5ec3837e1ed.tar.bz2
sharkey-913385b10d46ae962f370f2fa62fe5ec3837e1ed.zip
/ に main stream も流す
Diffstat (limited to 'src/server/api/streaming.ts')
-rw-r--r--src/server/api/streaming.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts
index c8c4a8a294..a0a219a317 100644
--- a/src/server/api/streaming.ts
+++ b/src/server/api/streaming.ts
@@ -44,6 +44,10 @@ module.exports = (server: http.Server) => {
request.resourceURL.pathname === '/local-timeline' ? channels.localTimeline :
request.resourceURL.pathname === '/hybrid-timeline' ? channels.hybridTimeline :
request.resourceURL.pathname === '/global-timeline' ? channels.globalTimeline : null);
+
+ if (request.resourceURL.pathname === '/') {
+ main.connectChannel(Math.random().toString(), null, channels.main);
+ }
}
connection.once('close', () => {