Cluster.ws constructor

Cluster.ws(
  1. String host, {
  2. int? port,
})

Creates a WS RPC URL for host.

Implementation

factory Cluster.ws(
  final String host, {
  final int? port,
}) =>
    Cluster(Uri(scheme: 'ws', host: host, port: port));