reticulum-js
    Preparing search index...

    Class Envelope

    Internal wrapper that carries a message over a channel and tracks its state.

    On the wire: msgtype(2) || sequence(2) || length(2) || data. The length field is written for protocol consistency; unpacking slices everything after the 6-byte header (matching the Python reference).

    Index
    • Parameters

      • opts: {
            message?: MessageBase | null;
            outlet: ChannelOutletBase;
            raw?: Uint8Array<ArrayBufferLike> | null;
            sequence?: number;
        }
        • Optionalmessage?: MessageBase | null
        • outlet: ChannelOutletBase
        • Optionalraw?: Uint8Array<ArrayBufferLike> | null

          received wire bytes (decode path)

        • Optionalsequence?: number

      Returns Envelope

    id: number
    message: MessageBase | null = null
    outlet: ChannelOutletBase | null = null
    packed: boolean = false
    packet: null

    Outlet packet handle returned by ChannelOutletBase#send. Always null until assigned.

    raw: Uint8Array<ArrayBufferLike> | null = null
    sequence: number = 0
    tracked: boolean = false
    tries: number = 0
    ts: number
    unpacked: boolean = false
    _nextId: number = 1