Skip to content

Commit 93af628

Browse files
committed
refactor: comment out connection readiness check in sendMsgDirect method
1 parent ad1d366 commit 93af628

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

nodejs/src/client/wsConnector.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,15 @@ export class WebSocketConnector {
472472
}
473473

474474
return new Promise((resolve, reject) => {
475-
if (!this._wsConn || this._wsConn.readyState !== w3cwebsocket.OPEN) {
476-
reject(
477-
new WebSocketQueryError(
478-
ErrorCode.ERR_WEBSOCKET_CONNECTION_FAIL,
479-
`WebSocket connection is not ready, status: ${this._wsConn?.readyState}`
480-
)
481-
);
482-
return;
483-
}
475+
// if (!this._wsConn || this._wsConn.readyState !== w3cwebsocket.OPEN) {
476+
// reject(
477+
// new WebSocketQueryError(
478+
// ErrorCode.ERR_WEBSOCKET_CONNECTION_FAIL,
479+
// `WebSocket connection is not ready, status: ${this._wsConn?.readyState}`
480+
// )
481+
// );
482+
// return;
483+
// }
484484

485485
const reqId = this.extractReqId(msg?.args?.req_id);
486486
const retriable = this.isRetriableAction(msg.action);

0 commit comments

Comments
 (0)