pub fn frame_payload(message: Message) -> FramePayloadExpand 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.