Skip to content
Snippets Groups Projects
Commit b2549d98 authored by syuilo's avatar syuilo
Browse files

Update streaming.ts

parent b1934d95
No related branches found
No related tags found
No related merge requests found
......@@ -133,11 +133,11 @@ export default class Stream extends EventEmitter<StreamEvents> {
}
@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) {
return this.connectToChannel(channel, params);
} else {
return this.useSharedConnection(channel);
return this.useSharedConnection(channel, name);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment