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

This commit is contained in:
syuilo 2018-10-11 23:01:57 +09:00
parent ad67886f96
commit e85f9f4aa5
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
17 changed files with 59 additions and 11 deletions

View file

@ -8,6 +8,9 @@ import * as maps from '../../../../../games/reversi/maps';
import Channel from '../../channel';
export default class extends Channel {
public readonly chName = 'gamesReversiGame';
public readonly shouldShare = false;
private gameId: mongo.ObjectID;
@autobind

View file

@ -5,6 +5,9 @@ import { publishMainStream } from '../../../../../stream';
import Channel from '../../channel';
export default class extends Channel {
public readonly chName = 'gamesReversi';
public readonly shouldShare = true;
@autobind
public async init(params: any) {
// Subscribe reversi stream