Transfer
Configuration 0x0B, server → client.
config · 0x0B · clientbound (server → client)
Tells the client to disconnect and connect to another server at the given host and port. The client reconnects with nextState = transfer in the handshake, and stored cookies are carried along.
Sent by the server, read by the client. Listen for it with client.on("Transfer", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
host |
String | |
port |
VarInt |
Send it
await client.sendPacket("Transfer", { host: "play.example.com", port: 25565 });
The client drops this connection and reconnects to host:port with nextState: 3 in its Intension. Cookies from StoreCookie are sent again to the new server.
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/config/clientbound/Transfer.ts