Function sc_rpc_server::start_ws [−][src]
pub fn start_ws<M: PubSubMetadata + From<Sender<String>>>(
addr: &SocketAddr,
max_connections: Option<usize>,
cors: Option<&Vec<String>>,
io: RpcHandler<M>,
maybe_max_payload_mb: Option<usize>
) -> Result<Server>
Expand description
Start WS server listening on given address.
Note: Only available if not(target_os = "unknown")
.