|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Unsubscribes the current user from Room-related events occurring in the specified Group. More...
#include <UnsubscribeRoomGroupRequest.h>
Public Member Functions | |
| UnsubscribeRoomGroupRequest (std::string groupId) | |
| Creates a new UnsubscribeRoomGroupRequest. | |
Unsubscribes the current user from Room-related events occurring in the specified Group.
This allows the user to stop being notified of specific Room events occurring in Rooms belonging to the unsubscribed Group.
If the operation is successful, the current user receives a roomGroupUnsubscribe event; otherwise the roomGroupUnsubscribeError event is fired.
Unsubscribing also prunes the local Rooms list: the Rooms belonging to the Group are dropped, except the ones currently joined, which survive until they are left.
Unsubscribes the current user from the Room events of one Group.
After this, the user is no longer notified of the events of the Rooms in that Group.
On success the current user receives a event::SFSEvent::ROOM_GROUP_UNSUBSCRIBE event, otherwise a event::SFSEvent::ROOM_GROUP_UNSUBSCRIBE_ERROR event.
|
inline |
Creates a new UnsubscribeRoomGroupRequest.
Pass it to SmartFox::send for the request to be performed.
| groupId | The name of the Room Group to unsubscribe. |