Skip to content

Commit

Permalink
fix: isNewSocket logic (#1355)
Browse files Browse the repository at this point in the history
Signed-off-by: Pritam Singh <[email protected]>
  • Loading branch information
Zzocker authored Mar 2, 2023
1 parent 2c792fe commit 18abb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/transport/WsOutboundTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class WsOutboundTransport implements OutboundTransport {
throw new AriesFrameworkError("Missing connection or endpoint. I don't know how and where to send the message.")
}

const isNewSocket = this.hasOpenSocket(endpoint)
const isNewSocket = !this.hasOpenSocket(endpoint)
const socket = await this.resolveSocket({ socketId: endpoint, endpoint, connectionId })

socket.send(Buffer.from(JSON.stringify(payload)))
Expand Down

0 comments on commit 18abb18

Please sign in to comment.