Function write_web_socket_message
pub async fn write_web_socket_message<W>(
writer: &mut W,
direction: WebSocketMessageType,
time: f64,
opcode: WebSocketMessageOpcode,
payload: impl AsyncRead + Unpin,
utf8: bool,
) -> Result<(), Box<dyn Error + Send + Sync>>where
W: AsyncWrite + Unpin,Available on crate features
http and std only.Expand description
Write a Chromium HAR WebSocket message with a streamed payload.
Set utf8 for text or already base64-encoded HAR data; raw binary payloads
are base64-encoded incrementally. The opcode determines how HAR readers
interpret the data: this extension has no separate encoding field.