Relay.Calling.ConnectAction
This object returned from connectAsync method that represents a connecting attempt that is currently active on a call.
Methods
getResult
Returns the final result of the connect attempt.
Returns
Relay.Calling.ConnectResult - Final result of the connect attempt.
Examples
Trying to connect two numbers in series and grab the result when it’s completed.
getState
Return the current state of the connect attempt.
Returns
string - Current state of the connect attempt.
Examples
Trying to connect two numbers in series and print the state.
getPayload
Return the payload sent to Relay to initiate the request. Useful to inspect what you sent to perform this action.
Returns
Object - Payload sent to Relay.
Examples
Trying to connect two numbers in series and print out the payload.
isCompleted
Return true if the connect attempt has finished, false otherwise.
Returns
Boolean - True/False accordingly to the state.
Examples
Trying to connect two numbers in series and check if it has finished.