Skip to main content

socket_id

Function socket_id 

Source
pub fn socket_id(request: &Request) -> Option<String>
Expand description

The socket id this request came from, if the client sent one.

Pass it to Broadcasting::event_except to skip the browser that caused the change — it has already updated itself, and echoing the change back makes its own edit flicker.