Skip to main content

frame_payload

Function frame_payload 

Source
pub fn frame_payload(message: Message) -> FramePayload
Expand description

The bytes a WebSocket message carries for the codec.

Google AI sends JSON in text frames; Vertex AI sends the same JSON in binary frames. Both become the same bytes here, which is what the session loop and the fuzz targets rely on: one decoder, two wire paths. A close frame becomes FramePayload::Close with the server’s reason (code and text), and control frames are FramePayload::Skip.