Class ZapDatagram

An object that represents the encoded bytes on a single datagram.

ZAPP(Zap Protocol) is network protocol defined on top of UDP datagram, enabling the exchange of 'Zapable' data between client and server. For further details about the protocol, refer to the ZAPP section in the Zap Documentation.

Hierarchy

  • ZapDatagram

Constructors

Properties

Methods

Constructors

Properties

header: ZappHeader

A header part.

payload: Buffer

A payload part.

Methods

  • Encode ZappObject to ByteBuffer. The sequence of bytes is MUST encoded as ZAPP Object.

    Returns Buffer

Generated using TypeDoc