qbit-rpc
    Preparing search index...

    Function parseZmqMessage

    • Parse one multipart message: topic, body, and a 4-byte little-endian sequence number, each a Uint8Array (a Buffer is one). Throws ZmqFrameError for anything else, including a frame of another type, an unknown topic and a body of the wrong length for its topic, and a TypeError when frames is not an array.

      Parameters

      • frames: readonly Uint8Array<ArrayBufferLike>[]

      Returns ZmqMessage