TsgcWSPClient_Presence › Methods › Invite
Invites another member by id to join a channel.
procedure Invite(const aChannel, aMemberID: String);
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel the invited member is asked to join. |
aMemberID | const String | Session id of the target member (typically the Session value received through OnSession by the invitee). |
Sends a channel invitation to the member identified by aMemberID. The remote client receives OnChannelInvitation; if it sets Accept to True it is automatically subscribed to the channel, otherwise an error is returned to the inviter. Either way the inviter is notified through OnChannelInvitationResponse.
oPresence.Invite('chat', 'remote-session-id');