pull/438/merge
Fabrizio Ruggeri 2020-12-17 17:09:59 -05:00 committed by GitHub
commit 8f368e795d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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)