Ping Request
Play 0x26, client → server.
play · 0x26 · serverbound (client → server)
Ping in the play state. id is an arbitrary client value, usually a timestamp. The server must reply with PongResponse echoing the same id. Not related to keep-alive.
Sent by the client, read by the server. Listen for it with client.on("PingRequest", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
id |
Long | also payload |
Send it
await client.sendPacket("PingRequest", {
id: /* Long */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/serverbound/PingRequest.ts