Skip to main content

OnSocketMethodReceived

The OnSocketMethodReceived event handler is a callback function that is called when a message is received from the Telnyx WebSocket connection. The message is passed as a parameter to the callback function.

TelnyxMessage

This class is used to represent a message received from the Telnyx Socket. It contains a socketMethod which is a string representing the type of message received and a ReceivedMessage which contains the message data.

Socket Methods

The socket method can be one of the following:

ReceivedMessage

The received message contains the data of the message received from the Telnyx Socket. It will contain the actual message as well as the state of the Call, client and SDK.