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

Dispatched when a Room is destroyed in a Group this client subscribes to. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Roomroom
 The Room that was removed.

Detailed Description

Dispatched when a Room is destroyed in a Group this client subscribes to.

It reports a change in the Room list, never a change in this client's membership: the server removes every joined user before it destroys a Room, so when this event arrives we are always out of it. To react to the loss of the Room we are in, listen to SFSEvent::USER_EXIT_ROOM instead.

See also
entities::Room
SFSEvent::ROOM_ADD

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