Skip to main content

serve

Function serve 

Source
pub fn serve<Q: Message, R: Message>(
    node: &Arc<Node<Q, R>>,
    hub: Arc<Hub>,
    auth: Arc<dyn StreamAuth>,
) -> Result<Server, StreamError>
Expand description

Serve hub on node at PROTOCOL, asking auth about each subscription. Needs a tokio runtime context.