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();
}