send method

void send(
  1. dynamic data
)

Sends data through the socket connection.

data is the message or payload to be sent.

Implementation

void send(dynamic data) {
  _socket.send(data);
}