mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: OpenVidu#getWsReadyState
parent
05718efc2e
commit
fccd21eefd
|
@ -780,6 +780,13 @@ export class OpenVidu {
|
|||
this.jsonRpcClient.close(4103, "Master Node has crashed");
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
getWsReadyState(): number {
|
||||
return this.jsonRpcClient.getReadyState();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
|
|
@ -270,6 +270,10 @@ function JsonRpcClient(configuration) {
|
|||
pingNextNum = 0;
|
||||
usePing();
|
||||
}
|
||||
|
||||
this.getReadyState = function () {
|
||||
return ws.getReadyState();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -151,6 +151,10 @@ function WebSocketWithReconnection(config) {
|
|||
};
|
||||
registerMessageHandler();
|
||||
};
|
||||
|
||||
this.getReadyState = () => {
|
||||
return ws.readyState;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = WebSocketWithReconnection;
|
Loading…
Reference in New Issue