send method

dynamic send (
  1. dynamic data
)

Implementation

send(data) {
  if (webSocketChannel != null) {
    webSocketChannel.sink.add(data);
  }
}