InterpreterSignalRConnection

InterpreterSignalRConnection

A SignalR interpreter connection

Constructor

new InterpreterSignalRConnection(authToken, region)

Create an InterpreterSignalRConnection

Parameters:
Name Type Description
authToken string

Boostlingo auth token retrieved from the server

region string
Fires:
  • InterpreterSignalRConnection#event:changeState

Methods

(protected) _createInterpreterHubConnection(region) → {HubConnection}

Creates SignalR connection to interpreter hub

Parameters:
Name Type Description
region string
Returns:
Type
HubConnection

(protected) _createUpdatesHubConnection(region) → {HubConnection}

Creates SignalR connection to updates hub

Parameters:
Name Type Description
region string
Returns:
Type
HubConnection

goOffline() → {Promise.<Object>}

Goes offline

Returns:
Type
Promise.<Object>

goOnline() → {Promise.<Object>}

Goes online

Returns:
Type
Promise.<Object>

hangupCall(call) → {Promise.<Object>}

Hangs up incoming call

Parameters:
Name Type Description
call string

ID

Returns:
Type
Promise.<Object>

pickCall(call) → {Promise.<Object>}

Picks incoming call

Parameters:
Name Type Description
call string

ID

Returns:
Type
Promise.<Object>

start() → {Promise.<Object>}

Starts interpreter SignalR connection

Returns:
Type
Promise.<Object>