TelnyxMessage
This class is used to represent a message received from the Telnyx Socket. It contains asocketMethod which is a string representing the type of message received and a ReceivedMessage which contains the message data.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check out our upcoming events and meetups! View events →
TelnyxMessage reference for the Flutter Voice SDK. Represents an inbound message received from the Telnyx socket — events, payload fields, and parsing.
socketMethod which is a string representing the type of message received and a ReceivedMessage which contains the message data.
class TelnyxMessage {
String socketMethod;
ReceivedMessage message;
TelnyxMessage({required this.socketMethod, required this.message});
}
class SocketMethod {
static const answer = 'telnyx_rtc.answer';
static const invite = 'telnyx_rtc.invite';
static const bye = 'telnyx_rtc.bye';
static const modify = 'telnyx_rtc.modify';
static const media = 'telnyx_rtc.media';
static const info = 'telnyx_rtc.info';
static const ringing = 'telnyx_rtc.ringing';
static const clientReady = 'telnyx_rtc.clientReady';
static const gatewayState = 'telnyx_rtc.gatewayState';
static const ping = 'telnyx_rtc.ping';
static const login = 'login';
static const attachCall = 'telnyx_rtc.attachCalls';
static const attach = 'telnyx_rtc.attach';
}
Was this page helpful?