Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns default

Properties

Protected _bindedCustomEventHandlers

_bindedCustomEventHandlers: CustomEventHandlers = ...

绑定了 this 上下文的 message 以外事件处理器

Protected _bindedMsgHandlers

_bindedMsgHandlers: MsgHandlers = ...

绑定了 this 上下文的 msg 处理器

Protected _bindedSocketIOEventsHandlers

_bindedSocketIOEventsHandlers: CustomEventHandlers = ...

socket.io 事件处理

Private _isBindedSocketIOEvent

_isBindedSocketIOEvent: boolean = false

是否监听socket 连接状态事件

Protected _liveApi

_liveApi: default

直播后台 api ajax 工具

Protected _otherApi

_otherApi: default

其他 api ajax 工具

Protected _watchApi

_watchApi: default

观看页接口工具

socketIOEvents

socketIOEvents: typeof SocketIOEvents = ...

socket.io 原生事件名称

Private useApiHost

useApiHost: undefined | boolean

是否使用API的接口获取挂件

Accessors

Protected SDKEventEmitter

  • get SDKEventEmitter(): EventEmitter
  • Returns EventEmitter

Methods

Protected asyncGetXAuthToken

  • asyncGetXAuthToken(data: asyncGetterGeneratorParams): Promise<unknown>
  • Parameters

    • data: asyncGetterGeneratorParams

    Returns Promise<unknown>

bindSocketIOEvents

  • bindSocketIOEvents(): void
  • 绑定 socket.io 原生事件,

    Returns void

destroy

  • destroy(): void
  • 销毁实例

    Returns void

getAppPendantList

  • 获取挂件列表

    Returns Promise<undefined | PendantListResData>

    Promise<PendantListResData | undefined>

off

  • 取消订阅事件

    Parameters

    Returns default

    this

on

  • 订阅事件

    Parameters

    Returns default

    this

trackLog

  • trackLog(data: ITrackEventData): Promise<void>
  • Parameters

    • data: ITrackEventData

    Returns Promise<void>

unbindCustomEvent

  • 解除监听 message 以外的聊天室消息

    Returns default

unbindEventHandlers

  • 取消所有事件监听

    Returns default

Protected wrapCustomHandlers

Protected wrapSocketIOEventHandlers

Generated using TypeDoc