XTransportWsClient.from constructor

XTransportWsClient.from(
  1. String _host,
  2. String _path,
  3. int _port, {
  4. bool log = false,
  5. Iterable<String>? protocols,
  6. XtransportCredentials credentials = const XtransportCredentials.insecure(),
})

Implementation

XTransportWsClient.from(
  this._host,
  this._path,
  this._port, {
  this.log = false,
  this.protocols,
  this.credentials = const XtransportCredentials.insecure(),
})  : assert(Uri.parse("https://$_host").host == _host),
      assert(_path.startsWith("/")),
      assert(_port > 0 && _port < 65536);