send method
void
send(
- dynamic data
Implementation
void send(dynamic data) async {
if (connectionStatus == ConnectionStatus.closed) {
await connect();
}
if (socket != null) {
socket!.add(data);
}
}