共有可能チャンネルに接続しようとしていて、かつそのチャンネルに既に接続していたら無意味なので無視するように

This commit is contained in:
syuilo
2018-10-11 23:01:57 +09:00
parent ad67886f96
commit e85f9f4aa5
17 changed files with 59 additions and 11 deletions

View File

@@ -5,6 +5,9 @@ import Channel from '../channel';
const ev = new Xev();
export default class extends Channel {
public readonly chName = 'serverStats';
public readonly shouldShare = true;
@autobind
public async init(params: any) {
ev.addListener('serverStats', this.onStats);