send method

Future<void> send(
  1. SocketConnect socketConnect
)

Implementation

Future<void> send(SocketConnect socketConnect) async {
  try {
    final json = toJson();
    final jsonStr = jsonEncode(json);
    socketConnect.sendData(jsonStr);
  } catch (e, s) {
    if (DDCheckPluginSetting.showLog) {
      debugPrint('$e');
      debugPrint("$s");
      debugPrint("flutterx:Sending data to Flutterx failed");
    }
  }
}