Skip to main content
Version: v0.0.3

Interface: MessageMeta

Metadata attached to each decoded MLLP message.

All fields are readonly, the object is Object.freeze()'d before emission.

Example

server.on('message', ({ payload, meta }) => {
console.log(meta.connectionId, '@', meta.byteOffset, 'warnings:', meta.warnings.length);
});

Properties

byteOffset

readonly byteOffset: number

Byte offset of the frame start in the connection's data stream.


connectionId

readonly connectionId: string

Stable UUID identifying the connection that delivered this message.


warnings

readonly warnings: readonly MllpWarning[]

Framing warnings emitted during decoding of this frame.