Railgun

if it ain't broke, we'll break it

User Tools

Site Tools


sockchat:s2c:context-clear

This is an old revision of the document!


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

sockchat/s2c/context-clear.1745114226.txt.gz · Last modified: 2025/04/20 01:57 by flash