sendData method

Future<void> sendData(
  1. String msg,
  2. DataFormatVersions version, {
  3. String type = "request",
})

发送消息 (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');
  }
}