TxSocketListener

TxSocket interface containing the methods that the socket connection will fire

Inheritors

Functions

Link copied to clipboard
abstract fun onAnswerReceived(jsonObject: JsonObject)

Fires when a user has provided an answer to a call attempt

Link copied to clipboard
abstract fun onAttachReceived(jsonObject: JsonObject)

Fires once a connection has been reestablished during an ongoing call and a session is being reattached

Link copied to clipboard
abstract fun onByeReceived(callId: UUID)

Fires when the TxSocket has received an indication the a call has ended or been rejected

Link copied to clipboard
abstract fun onClientReady(jsonObject: JsonObject)

Fires once the client is ready and gateway status updates can be received

Link copied to clipboard

Fires when a socket connection is established

Link copied to clipboard
abstract fun onDisablePushReceived(jsonObject: JsonObject)

Fires when a disablePush response is recieved

Link copied to clipboard
abstract fun onDisconnect()

Fires when the socket has disconnected

Link copied to clipboard
abstract fun onErrorReceived(jsonObject: JsonObject)

Fires when an error has occurred with the TxSocket

Link copied to clipboard
abstract fun onGatewayStateReceived(gatewayState: String, receivedSessionId: String?)

Fires once a Gateway state has been received. These are used to find a verified registration

Link copied to clipboard
abstract fun onIceCandidateReceived(iceCandidate: IceCandidate)

Fires when a usable IceCandidate has been received

Link copied to clipboard
abstract fun onMediaReceived(jsonObject: JsonObject)

Fires when an answer has been provided with additional media

Link copied to clipboard
abstract fun onOfferReceived(jsonObject: JsonObject)

Fires when the TxSocket has received an invitation to communicate

Link copied to clipboard
abstract fun onRingingReceived(jsonObject: JsonObject)

Fires once we receive a ringing socket response, containing Telnyx information

Link copied to clipboard
abstract fun pingPong()

Fires when a ping message is received from the server, requiring a pong response

Link copied to clipboard
abstract fun setCallRecovering()

Fires when network has dropped during an ongoing call. Signifies that the SDK will attempt to recover once network has returned