TsgcWSPClient_E2EE › Methods › LeaveGroup
Leaves a group the local user is currently a member of.
function LeaveGroup(const aGroup: string; aTimeout: Integer = 10000): Boolean;
| Name | Type | Description |
|---|---|---|
aGroup | const string | Name of the group the local user wants to leave. |
aTimeout | Integer | Maximum time in milliseconds to wait for the server acknowledgment (default 10000). |
True when the server confirmed the membership change within the timeout, False otherwise (Boolean).
Removes the local user from the specified group. After a successful leave the client no longer receives group messages and the remaining members are notified through OnE2EEGroupMemberLeave, while the local side fires OnE2EEGroupLeave. The group itself is not deleted; use DeleteGroup for that.
oE2EE.LeaveGroup('TEAM01');