From e05acb8d18059c01e5789db043db82e4abfbd9d5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 7 Oct 2018 17:19:52 +0900 Subject: 後方互換性を追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/stream/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/api/stream') diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index 04136b3506..743d77b2a3 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -174,7 +174,7 @@ export default class Connection { * チャンネルに接続 */ @autobind - private connectChannel(id: string, params: any, channelClass: { new(id: string, connection: Connection): Channel }) { + public connectChannel(id: string, params: any, channelClass: { new(id: string, connection: Connection): Channel }) { const channel = new channelClass(id, this); this.channels.push(channel); channel.init(params); @@ -185,7 +185,7 @@ export default class Connection { * @param id チャンネルコネクションID */ @autobind - private disconnectChannel(id: string) { + public disconnectChannel(id: string) { const channel = this.channels.find(c => c.id === id); if (channel) { -- cgit v1.2.3-freya