sockchat:s2c:context-clear
This is an old revision of the document!
Table of Contents
S2C Packet 8: Context Clear
Informs the client that a part of the context has been cleared.
This packet can mostly safely be ignored if the client manually clears contexts where sensible, e.g. when switching channels or reconnecting. In the original PHP implementation, and thus other implementations, only mode 3
is ever used when switching channels.
Format
Index | Type | Description |
---|---|---|
0 | 8 | Context Clear packet ID |
1 | int | Context Clear mode |
Modes
Mode | Description |
---|---|
0 | Only the message list has been cleared. |
1 | Only the user list has been cleared. |
2 | Only the channel list has been cleared. |
3 | Message and user lists have been cleared. |
4 | Channel, message and user lists have all been cleared. |
Examples
Message and user lists have been cleared:
8\t3
All lists have been cleared:
8\t4
Only the message list has been cleared:
8\t0
See Also
- Context Population - The opposite version of this command, populates the context with existing data.
- Channel User Switch - Generally occurs along with this packet.
sockchat/s2c/context-clear.1744584300.txt.gz · Last modified: 2025/04/13 22:45 by flash