Skip to main content

start

Function start 

Source
pub fn start(
    server: &Server,
    sink: &Arc<dyn DynFrameSink>,
    peer: &PeerSession,
    honoured: &Honoured,
    meta: &Value,
) -> ListSubscription
Expand description

Subscribes sink to everything honoured names, tagged with meta.

Call it only after the acknowledgement has been written, so no change can reach the client ahead of it. The returned guard ends both the list and the resource subscriptions when it is dropped.