|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Dispatched when a public message is received. More...
#include <SFSEvent.h>
Public Attributes | |
| std::shared_ptr< entities::Room > | room |
| The Room the message is addressed to. | |
| std::shared_ptr< entities::User > | sender |
| The user who sent the message. | |
| std::string | message |
| The message. | |
| std::shared_ptr< entities::SFSObject > | data |
| The custom parameters the sender attached to the message, or nullptr if none. | |
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.