WsProvider constructor

WsProvider(
  1. Uri url, {
  2. bool autoConnect = true,
})

Creates a new websocket connection, connects automatically by default

Implementation

WsProvider(this.url, {bool autoConnect = true}) : super() {
  if (autoConnect) {
    connect();
  }
}