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