Future<String> sendString(String channel, String message)

Send a string message to the host application.

Source

static Future<String> sendString(String channel, String message) async {
  return _decodeUTF8(await sendBinary(channel, _encodeUTF8(message)));
}