後方互換性を追加

This commit is contained in:
syuilo
2018-10-07 17:19:52 +09:00
parent 10af684804
commit e05acb8d18
2 changed files with 24 additions and 2 deletions

View File

@ -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) {