InterpreterSignalRConnection

InterpreterSignalRConnection

A SignalR interpreter connection

Constructor

new InterpreterSignalRConnection(authToken, region)

Description:
  • 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}

Description:
  • Creates SignalR connection to interpreter hub

Parameters:
Name Type Description
region string
Returns:
Type
HubConnection

(protected) _createUpdatesHubConnection(region) → {HubConnection}

Description:
  • Creates SignalR connection to updates hub

Parameters:
Name Type Description
region string
Returns:
Type
HubConnection

goOffline() → {Promise.<Object>}

Description:
  • Goes offline

Returns:
Type
Promise.<Object>

goOnline() → {Promise.<Object>}

Description:
  • Goes online

Returns:
Type
Promise.<Object>

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

Description:
  • Hangs up incoming call

Parameters:
Name Type Description
call string

ID

Returns:
Type
Promise.<Object>

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

Description:
  • Picks incoming call

Parameters:
Name Type Description
call string

ID

Returns:
Type
Promise.<Object>

start() → {Promise.<Object>}

Description:
  • Starts interpreter SignalR connection

Returns:
Type
Promise.<Object>