Trait WebsocketService
wsrpc
pub trait WebsocketService<Ctx: Clone> { fn serve_ws( &self, ctx: Ctx, raw_req: Value, service_id: &str ) -> BoxStream<'static, Result<Box<RawValue>, ErrorKind>>; }
fn serve_ws( &self, ctx: Ctx, raw_req: Value, service_id: &str) -> BoxStream<'static, Result<Box<RawValue>, ErrorKind>>
impl<Req, Resp, Ctx, S> WebsocketService<Ctx> for S where S: Service<Req = Req, Resp = Resp, Ctx = Ctx>, Req: DeserializeOwned, Resp: Serialize + 'static, Ctx: Clone,