mirror of https://github.com/OpenVidu/openvidu.git
Merge 4c94412439
into bd3b0f5b66
commit
8f368e795d
|
@ -739,12 +739,13 @@ export class OpenVidu {
|
|||
/**
|
||||
* @hidden
|
||||
*/
|
||||
startWs(onConnectSucces: (error: Error) => void): void {
|
||||
startWs(onConnectOrError: (error: Error) => void): void {
|
||||
const config = {
|
||||
heartbeat: 5000,
|
||||
ws: {
|
||||
uri: this.wsUri,
|
||||
onconnected: onConnectSucces,
|
||||
onconnected: onConnectOrError,
|
||||
onerror: onConnectOrError,
|
||||
ondisconnect: this.disconnectCallback.bind(this),
|
||||
onreconnecting: this.reconnectingCallback.bind(this),
|
||||
onreconnected: this.reconnectedCallback.bind(this)
|
||||
|
|
Loading…
Reference in New Issue