Skip to content

API reference / @jsprismarine/prismarine / network/OutboundPacketTrace

network/OutboundPacketTrace ​

Classes ​

Interfaces ​

OutboundPacketRecord ​

Defined in: prismarine/src/network/OutboundPacketTrace.ts:4

One client packet when the server queues it for transport.

Properties ​

connectionId ​

readonly connectionId: number

Defined in: prismarine/src/network/OutboundPacketTrace.ts:6

Process-local identity assigned when the dispatcher admits the connection.

packetName ​

readonly packetName: string

Defined in: prismarine/src/network/OutboundPacketTrace.ts:18

Protocol packet class name.

payload ​

readonly payload: Uint8Array

Defined in: prismarine/src/network/OutboundPacketTrace.ts:20

Encoded packet bytes, including the packet id and excluding the enclosing batch.

protocolVersion ​

readonly protocolVersion: number

Defined in: prismarine/src/network/OutboundPacketTrace.ts:16

Protocol version used to encode the packet.

sequence ​

readonly sequence: number

Defined in: prismarine/src/network/OutboundPacketTrace.ts:8

Zero-based order among packets queued for this connection.

tick ​

readonly tick: number

Defined in: prismarine/src/network/OutboundPacketTrace.ts:14

The server tick whose work queued the packet: the tick that ran or replicated it, which for a packet replication sends is the sealed tick it read, not the tick in which the transport framed it (ADR 0006).


OutboundPacketRecorder ​

Defined in: prismarine/src/network/OutboundPacketTrace.ts:24

Receives clientbound packets as they are framed for a connection.

Methods ​

record() ​

record(packet): void

Defined in: prismarine/src/network/OutboundPacketTrace.ts:26

Stores or forwards one clientbound packet record.

Parameters ​
packet ​

OutboundPacketRecord

Returns ​

void