WebSocketTransport constructor

WebSocketTransport(
  1. dynamic connect
)

Implementation

WebSocketTransport(connect) : super(connect) {
  name = 'websocket';
  this.connect = connect;
  subscription =
      connect.websocket.listen(onData, onError: onError, onDone: onClose);
  writable = true;
}