summaryrefslogtreecommitdiff
path: root/src/server/api/stream/index.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-07 17:19:52 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-07 17:19:52 +0900
commite05acb8d18059c01e5789db043db82e4abfbd9d5 (patch)
treedd55d03d88794e13d5d78333d0acc769da4f7a5a /src/server/api/stream/index.ts
parentImprove readability a little (diff)
downloadsharkey-e05acb8d18059c01e5789db043db82e4abfbd9d5.tar.gz
sharkey-e05acb8d18059c01e5789db043db82e4abfbd9d5.tar.bz2
sharkey-e05acb8d18059c01e5789db043db82e4abfbd9d5.zip
後方互換性を追加
Diffstat (limited to 'src/server/api/stream/index.ts')
-rw-r--r--src/server/api/stream/index.ts4
1 files changed, 2 insertions, 2 deletions
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) {