TelnyxClient constructor
TelnyxClient()
Implementation
TelnyxClient() {
// Default implementation of onSocketMessageReceived
onSocketMessageReceived = (TelnyxMessage message) {
switch (message.socketMethod) {
case SocketMethod.INVITE:
{
_logger.i(
'TelnyxClient :: onSocketMessageReceived Override this on client side: $message');
break;
}
case SocketMethod.BYE:
{
_logger.i(
'TelnyxClient :: onSocketMessageReceived Override this on client side: $message');
break;
}
default:
_logger.i(
'TelnyxClient :: onSocketMessageReceived Override this on client side: $message');
}
_logger.i(
'TelnyxClient :: onSocketMessageReceived Override this on client side: $message');
};
checkReconnection();
}