Skip to main content

Module chat

Module chat 

Source
Expand description

Chat and messaging state for a player.

Groups the fields related to secure chat: message counters, signature cache, message validator, chat session, and message chain.

Modulesยง

message_chain
Message chain management for signed chat.
message_validator ๐Ÿ”’
Server-side validation of client message acknowledgements.
profile_key
Player profile public key management for secure chat.
signature_cache ๐Ÿ”’
Chat message signature tracking for secure chat validation.

Structsยง

ChatState
All chat-related state for a player.
LastSeen
Tracks the last seen message signatures by a player
LastSeenMessagesValidator
Validates that the client is properly acknowledging messages sent by the server
MessageCache
Message signature cache for a player

Enumsยง

ChatSessionUpdateOutcome ๐Ÿ”’

Constantsยง

MESSAGE_EXPIRES_AFTER_SERVER ๐Ÿ”’
Vanilla PlayerChatMessage.MESSAGE_EXPIRES_AFTER_SERVER.

Functionsยง

validate_chat_session_update ๐Ÿ”’