1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-18 16:48:34 +09:00

Update streaming.ts

This commit is contained in:
syuilo 2021-05-31 11:28:20 +09:00
parent b1934d95f2
commit b2549d98f9

View File

@ -133,11 +133,11 @@ export default class Stream extends EventEmitter<StreamEvents> {
} }
@autobind @autobind
public useChannel<C extends keyof ChannelDef>(channel: C, params?: any): Connection<ChannelDef[C]['events']> { public useChannel<C extends keyof ChannelDef>(channel: C, params?: any, name?: string): Connection<ChannelDef[C]['events']> {
if (params) { if (params) {
return this.connectToChannel(channel, params); return this.connectToChannel(channel, params);
} else { } else {
return this.useSharedConnection(channel); return this.useSharedConnection(channel, name);
} }
} }