pub fn decode_frame(frame: &[u8]) -> Result<KalshiWsMessage, KalshiWsError>Expand description
Decodes one text or binary JSON frame without converting financial values.
ยงErrors
Returns an error if the frame does not match the protocol. The error omits frame contents.