Skip to main content

send_text

Function send_text 

Source
async fn send_text<S>(socket: &mut ClientSocket<S>, text: &str) -> Result<()>
where S: Sink<Message, Error = Error> + Unpin,
Expand description

Write an already-encoded frame. The settings document is encoded once per reload and shared, so a connection writes its bytes rather than building the frame again.