send method

void send(
  1. dynamic data
)

Implementation

void send(dynamic data) async {
  if (connectionStatus == ConnectionStatus.closed) {
    await connect();
  }

  if (socket != null) {
    socket!.add(data);
  }
}