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 (if it is set to message ID 0, and you are asking for messages sent BEFORE this message ID (see next byte), it will actually just give you messages relative the most recent messageId in the channel (see last n bytes))
  * (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 that message id, first(most significant) bit will tell the server if you want all messages BEFORE or AFTER that message ID)
  * (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.