Skip to main content

frame_for

Function frame_for 

Source
fn frame_for<S>(socket: &ClientSocket<S>, text: &str) -> Message
Expand description

One message as the frame this connection sends: text as it always was, or a gzipped body behind COMPRESSED_JSON_TAG when the client declared the capability and the body is over the threshold.