|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Leaves one of the Rooms joined by the current user. More...
#include <LeaveRoomRequest.h>
Public Member Functions | |
| LeaveRoomRequest (std::shared_ptr< entities::Room > room=nullptr) | |
| Creates a new LeaveRoomRequest. | |
Leaves one of the Rooms joined by the current user.
Depending on the events setting the Room got at creation time, two events can be fired: every user inside the Room, the current one included, gets a event::SFSEvent::USER_EXIT_ROOM event, and every client that subscribed the Group of the Room gets a event::SFSEvent::USER_COUNT_CHANGE event.
| sfs3::requests::LeaveRoomRequest::LeaveRoomRequest | ( | std::shared_ptr< entities::Room > | room = nullptr | ) |
Creates a new LeaveRoomRequest.
Pass it to SmartFox::send for the request to be performed.
| room | The Room the current user must leave. When it is nullptr the last joined Room is left. |