sendData method
发送消息 (dio 专用)
Implementation
Future<void> sendData(String msg, DataFormatVersions version,
{String type = "request"}) async {
if (socket != null) {
sendDataMap(msg, type, version);
} else {
ddCheckPluginLog('socket is null,send fail');
}
}