Improve streaming API
This commit is contained in:
parent
9c0e990568
commit
6012e98ae6
17 changed files with 20 additions and 0 deletions
|
|
@ -173,6 +173,10 @@ export default class Connection {
|
|||
*/
|
||||
@autobind
|
||||
public connectChannel(id: string, params: any, channel: string, pong = false) {
|
||||
if ((channels as any)[channel].requireCredential && this.user == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 共有可能チャンネルに接続しようとしていて、かつそのチャンネルに既に接続していたら無意味なので無視
|
||||
if ((channels as any)[channel].shouldShare && this.channels.some(c => c.chName === channel)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue