Workspaces refactor #86
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue