close method

dynamic close ()

Implementation

close() {
  if (webSocketChannel != null) webSocketChannel.sink.close();
}