From 88978f923927d1c36010907cb6fb84f7f737077a Mon Sep 17 00:00:00 2001 From: mei23 Date: Tue, 9 Oct 2018 03:29:11 +0900 Subject: [PATCH] =?UTF-8?q?/=20=E3=81=AB=20main=20stream=20=E3=82=82?= =?UTF-8?q?=E6=B5=81=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/streaming.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index c8c4a8a29..a0a219a31 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', () => {