TSignaling

信令常量

Members

(static) NEW_INVITATION_RECEIVED

收到新的邀请

注意:集成 ESM 规范的 SDK 时,需同时集成 SignalingModule,可参考 集成指引

Example
let onNewInvitationReceived = function(event) {
 console.log('onNewInvitationReceived', `inviteID:${event.data.inviteID} invitee:${event.data.invitee} data:${event.data.data}`);
};
chat.addSignalingListener(TencentCloudChat.TSignaling.NEW_INVITATION_RECEIVED, onNewInvitationReceived);

(static) INVITEE_ACCEPTED

被邀请人接受了邀请

注意:集成 ESM 规范的 SDK 时,需同时集成 SignalingModule,可参考 集成指引

Example
let onInviteeAccepted = function(event) {
  console.log('onInviteeAccepted', `inviteID:${event.data.inviteID} invitee:${event.data.invitee} data:${event.data.data}`);
};
chat.addSignalingListener(TencentCloudChat.TSignaling.INVITEE_ACCEPTED, onInviteeAccepted);

(static) INVITEE_REJECTED

被邀请人拒绝了邀请

注意:集成 ESM 规范的 SDK 时,需同时集成 SignalingModule,可参考 集成指引

Example
let onInviteeRejected = function(event) {
  console.log('onInviteeRejected', `inviteID:${event.data.inviteID} invitee:${event.data.invitee} data:${event.data.data}`);
};
chat.addSignalingListener(TencentCloudChat.TSignaling.INVITEE_REJECTED, onInviteeRejected);

(static) INVITATION_CANCELLED

邀请被发起者取消

注意:集成 ESM 规范的 SDK 时,需同时集成 SignalingModule,可参考 集成指引

Example
let onInvitationCancelled = function(event) {
  console.log('onInvitationCancelled', `inviteID:${event.data.inviteID} inviter:${event.data.inviter} data:${event.data.data}`);
};
chat.addSignalingListener(TencentCloudChat.TSignaling.INVITATION_CANCELLED, onInvitationCancelled);

(static) INVITATION_TIMEOUT

邀请超时

注意:集成 ESM 规范的 SDK 时,需同时集成 SignalingModule,可参考 集成指引

Example
let onInvitationTimeout = function(event) {
  console.log('onInvitationTimeout', `inviteID:${event.data.inviteID} inviteeList:${event.data.inviteeList} isSelfTimeout:${event.data.isSelfTimeout}`);
};
chat.addSignalingListener(TencentCloudChat.TSignaling.INVITATION_TIMEOUT, onInvitationTimeout);

(static) INVITATION_MODIFIED

信令被修改

注意:集成 ESM 规范的 SDK 时,需同时集成 SignalingModule,可参考 集成指引

Example
let onInvitationModified = function(event) {
  console.log('onInvitationModified', `inviteID:${event.data.inviteID} data::${event.data.data}`);
};
chat.addSignalingListener(TencentCloudChat.TSignaling.INVITATION_MODIFIED, onInvitationModified);

(static) ACTION_TYPE_UNKNOWN

信令状态:未定义。

(static) ACTION_TYPE_INVITE

信令状态:邀请方发起邀请。

(static) ACTION_TYPE_CANCEL_INVITE

信令状态:邀请方取消邀请。

(static) ACTION_TYPE_ACCEPT_INVITE

信令状态:被邀请方接受邀请。

(static) ACTION_TYPE_REJECT_INVITE

信令状态:被邀请方拒绝邀请。

(static) ACTION_TYPE_INVITE_TIMEOUT

信令状态:邀请超时。