pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function parseHeader

    • Reads a frame far enough to route it, without any key.

      A receiver holding many sessions uses this to find which one a frame belongs to: the device address travels in the clear, so it can be read before the session that would verify the frame is even known.

      Nothing this reports is authenticated. Treat it as a routing hint until Session.decode has verified the frame.

      Parameters

      • bytes: Uint8Array

        The raw frame as it came off the radio.

      Returns Header

      What the header says the frame is.

      If the frame is truncated or carries a message type this build does not read.