Function sc_rpc_server::start_http
source · [−]pub fn start_http<M: PubSubMetadata + Default>(
addr: &SocketAddr,
cors: Option<&Vec<String>>,
io: RpcHandler<M>
) -> Result<Server>
Expand description
Start HTTP server listening on given address.
Note: Only available if not(target_os = "unknown")
.