Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit cdb1cc0

Browse files
committed
fix in v2
1 parent c3a45c1 commit cdb1cc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/v2/core/Stream/StreamConnections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class StreamConnections extends Listener {
3737
streamIdIncrement = new Increment()
3838
public async connect(timeoutMs: number, session: string, socketId: string): Promise<string> {
3939
const streamId = `${new Date().getTime()}${this.streamIdIncrement.id}`
40-
this.connections[streamId] = new StreamConnection(this.url, session, this.callListener, streamId, socketId)
40+
this.connections[streamId] = new StreamConnection(this.url, session, (listenerId: string, params?: any[]) => this.callListener(listenerId, params), streamId, socketId)
4141
await this.connections[streamId].connect(timeoutMs)
4242
return streamId
4343
}

0 commit comments

Comments
 (0)