send method
Implementation
Future<void> send(dynamic data, {bool chunked = false}) async {
if (!open) {
emitError(DataConnectionErrorType.NotOpenYet.value,
"Connection is not open. You should listen for the `open` event before sending messages.");
return Future.value();
}
await privateSend(data, chunked);
}