send method
Implementation
Future<void> send(
DataFormatVersions version, SocketConnect socketConnect) async {
try {
final json = toJson();
final jsonStr = jsonEncode(json);
socketConnect.sendData(jsonStr, version);
} catch (e, s) {
print(e);
print(s);
debugPrint("flutterx:Sending data to Flutterx failed");
}
}