Struct jsonrpsee_ws_server::WsServer
source · pub struct WsServer<M> { /* private fields */ }
Expand description
A WebSocket JSON RPC server.
Implementations§
source§impl<M: Middleware> Server<M>
impl<M: Middleware> Server<M>
sourcepub fn local_addr(&self) -> Result<SocketAddr, Error>
pub fn local_addr(&self) -> Result<SocketAddr, Error>
Returns socket address to which the server is bound.
sourcepub fn server_handle(&self) -> ServerHandle ⓘ
pub fn server_handle(&self) -> ServerHandle ⓘ
Returns the handle to stop the running server.