WsConnection constructor

WsConnection(
  1. String url
)

Implementation

WsConnection(this.url)
    : assert(isWsUrl(url),
          'Provided URL is not compatible with WebSocket connection: $url'),
      events = EventEmitter();