← Packet index

Packet 361

ChatPacket

Player chat routed through Mojang Managed Chat

Carries a Chat Service signature that receiving clients verify. The hosting server relays the signed block unmodified, may decorate around it, and chooses the room it goes to.

Packet datagramWire order
HeaderID 361varuint
0Signed ChatSignedChat · variable
1Room Idstring · variable
2FormattingChatFormatting · variable

Serialized fields

3 top-level fields
  1. 0Signed ChatRelayed unmodified by the hosting serverSignedChat
    1. 0Key IdIdentifies which published Chat Service key signed this message; empty when unsignedstring
    2. 1Sender IdThe identity the Chat Service signed against; empty when unsignedstring
    3. 2Message IdClient generated id for this message; empty when unsignedstring
    4. 3Scan TextThe message the Chat Service scanned and signedstring
    5. 4Redacted TextRedacted form of the message; empty means nothing needed redactingstring
    6. 5Author NameName to display for the sender: the gamertag the Chat Service resolved, or for a message with no sender, the name supplied when it was signed; empty when unsigned or when no name was resolvedstring
    7. 6SignatureChat Service signature over the fields above; empty when the sender could not signstring
  2. 1Room IdoptionalChat room the message is for; absent for the default chat. Not signed, so the hosting server may change it to route the message to another roomstring
  3. 2FormattingoptionalOptional server decoration rendered around the signed name and messageChatFormatting
    1. 0Name PrefixoptionalServer decoration rendered before the author namestring
    2. 1Name PostfixoptionalServer decoration rendered after the author namestring
    3. 2Message PrefixoptionalServer decoration rendered before the messagestring
    4. 3Message PostfixoptionalServer decoration rendered after the messagestring

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.