Development: Difference between revisions
Change this to talk about chat history packet instead. Chat packet is obsolete |
|||
| Line 17: | Line 17: | ||
* (u8) packetCode = 13 | * (u8) packetCode = 13 | ||
* (u32 fromMessageId ( | * (u32 fromMessageId (If set to 0, AND you are asking for messages sent BEFORE this specified message Id (see next byte), it will give you messages relative the most recent messageId in the channel (see last n bytes)) | ||
* (u8) message count AND before|after (last 7 bits will tell the server how many messages you want since | * (u8) message count AND before|after (last 7 bits will tell the server how many messages you want before or since the specified message Id, first (most significant) bit will tell the server if you want messages from BEFORE or AFTER the specified message Id) | ||
* (n bytes) name of chat channel as a UTF8 encoded string | * (n bytes) name of chat channel as a UTF8 encoded string | ||
MessageId ascends as new chat messages are sent, so greater message ID = more recent. | MessageId ascends as new chat messages are sent, so greater message ID = more recent. | ||