sendAction method

void sendAction(
  1. WebSocketAction action
)

Sends the given action on the socket.

Implementation

void sendAction(WebSocketAction action) {
  if (_socket == null) {
    _queue.addLast(action);
  } else {
    socket?.sink.add(serialize(action));
  }
}