Options
All
  • Public
  • Public/Protected
  • All
Menu

公告SDK

Hierarchy

Index

Constructors

constructor

Properties

Protected _bindedCustomEventHandlers

_bindedCustomEventHandlers: CustomEventHandlers = ...

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

Protected _bindedMsgHandlers

_bindedMsgHandlers: MsgHandlers = ...

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

Protected _bindedSocketIOEventsHandlers

_bindedSocketIOEventsHandlers: CustomEventHandlers = ...

socket.io 事件处理

Protected _liveApi

_liveApi: default

直播后台 api ajax 工具

Protected _otherApi

_otherApi: default

其他 api ajax 工具

Protected _watchApi

_watchApi: default

观看页接口工具

Optional content

公告内容

events

events: typeof AnnouncementEvents

公告模块事件

socketIOEvents

socketIOEvents: typeof SocketIOEvents = ...

socket.io 原生事件名称

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

destroy

  • destroy(): void
  • 销毁实例

    Returns void

getAppPendantList

getBulletinList

  • 获取房间公告列表。

    Parameters

    • Optional score: number
    • size: number = 10

    Returns Promise<ApiResponseData<BulletinListResList>>

    房间公告列表。

off

  • 取消订阅事件

    Parameters

    Returns Announcement

    this

on

trackLog

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

    • data: ITrackEventData

    Returns Promise<void>

unbindCustomEvent

unbindEventHandlers

Protected wrapCustomHandlers

Protected wrapSocketIOEventHandlers

Generated using TypeDoc