SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
Loading...
Searching...
No Matches
sfs3::event::PublicMessage Struct Reference

Dispatched when a public message is received. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Roomroom
 The Room the message is addressed to.
std::shared_ptr< entities::Usersender
 The user who sent the message.
std::string message
 The message.
std::shared_ptr< entities::SFSObjectdata
 The custom parameters the sender attached to the message, or nullptr if none.

Detailed Description

Dispatched when a public message is received.

It is caused by a requests::PublicMessageRequest from any user in the target Room, including this client: the server echoes the messages back, so that the conversation can be rendered in the order it reached the Room.

See also
requests::PublicMessageRequest
entities::User
entities::Room
SFSEvent::PRIVATE_MESSAGE

The documentation for this struct was generated from the following file: