Skip to main content

on_hello

Function on_hello 

Source
async fn on_hello<W>(
    write: &mut W,
    ctx: &Ctx<'_>,
    st: &mut State,
    data: Option<&Value>,
) -> Result<(), String>
where W: Sink<Message, Error = Error> + Unpin,
Expand description

HELLO: start the heartbeat clock, then RESUME the session we had or IDENTIFY.