Skip to main content

send_frame

Function send_frame 

Source
pub async fn send_frame<S>(writer: &mut S, frame: &ServerFrame) -> Result<()>
where S: SinkExt<Message> + Unpin,
Expand description

Send a ServerFrame as a binary WebSocket message. Works with any sink that accepts Binary messages.