Skip to main content

is_host_sdk_message

Function is_host_sdk_message 

Source
pub fn is_host_sdk_message(data: &[u8]) -> bool
Expand description

Returns true if data starts with the host-sdk protocol discriminator.

Use this to route incoming raw messages before calling decode_message: if true, pass the full buffer to decode_message; otherwise, forward to an alternative protocol handler (e.g. Nova).