sendMessage method

Future<void> sendMessage(
  1. String message
)

Sends message within the call.

Implemented atop SIP INFO for communication between call endpoint and the Voximplant Cloud, and is separated from Voximplant messaging API.

message - Message text

Implementation

Future<void> sendMessage(String message) async {
  try {
    await _channel.invokeMethod<void>('Call.sendMessageForCall',
        <String, dynamic>{'callId': _callId, 'message': message});
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}