TsgcWSPClient_PresenceMethods › Invite

Invite Method

Invites another member by id to join a channel.

Syntax

procedure Invite(const aChannel, aMemberID: String);

Parameters

NameTypeDescription
aChannelconst StringName of the channel the invited member is asked to join.
aMemberIDconst StringSession id of the target member (typically the Session value received through OnSession by the invitee).

Remarks

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.

Example

oPresence.Invite('chat', 'remote-session-id');

Back to Methods