broadcast

Function broadcast 

Source
pub fn broadcast(path: &[u8], data: &[u8]) -> i32
Expand description

Broadcast a message to all WebSocket connections on a path.

path must be a null-terminated byte string.

Returns the number of connections the message was sent to.