send method
Implementation
void send(Object message) {
final connection = _connection;
if (connection == null) throw StateError('WebSocket is not connected.');
connection.send(message);
}
void send(Object message) {
final connection = _connection;
if (connection == null) throw StateError('WebSocket is not connected.');
connection.send(message);
}