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
readonlyconnectionId:number
Defined in: prismarine/src/network/OutboundPacketTrace.ts:6
Process-local identity assigned when the dispatcher admits the connection.
packetName
readonlypacketName:string
Defined in: prismarine/src/network/OutboundPacketTrace.ts:18
Protocol packet class name.
payload
readonlypayload:Uint8Array
Defined in: prismarine/src/network/OutboundPacketTrace.ts:20
Encoded packet bytes, including the packet id and excluding the enclosing batch.
protocolVersion
readonlyprotocolVersion:number
Defined in: prismarine/src/network/OutboundPacketTrace.ts:16
Protocol version used to encode the packet.
sequence
readonlysequence:number
Defined in: prismarine/src/network/OutboundPacketTrace.ts:8
Zero-based order among packets queued for this connection.
tick
readonlytick: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
Returns
void