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

Commit c3a45c1

Browse files
committed
fix in v2
1 parent 29e14ae commit c3a45c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/v2/core/Socket/SocketConnections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class SocketConnections extends Listener {
6363
socketIdIncrement = new Increment()
6464
public connect(timeoutMs: number): Promise<string> {
6565
const socketId = `${new Date().getTime()}${this.socketIdIncrement.id}`
66-
this.connections[socketId] = new SocketConnection(this.url, this.callListener, socketId)
66+
this.connections[socketId] = new SocketConnection(this.url, (listenerId: string, params?: any[]) => this.callListener(listenerId, params), socketId)
6767
return this.connections[socketId].connect(timeoutMs)
6868
.then(() => socketId)
6969
}

0 commit comments

Comments
 (0)