Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRoomExchange

Room Exchange Interface, all Room Exchange should implement this interface.

internal

Hierarchy

  • IRoomExchange

Implemented by

Index

Properties

client

client: unknown

Client Connector

subscriptionHMap

subscriptionHMap: ISubscriptionHMap

Hash Map

Methods

subscribe

  • subscribe(roomID: string, type: "gift" | "danmaku" | "online" | "new_guard" | "welcome_vip" | "welcome_guard" | "sc" | "user_blocked" | "live_status" | "room_change" | "room_locked" | "room_warning" | "room_limited" | "sc_delete" | "*", cb: roomMessageCallback): string
  • Parameters

    • roomID: string
    • type: "gift" | "danmaku" | "online" | "new_guard" | "welcome_vip" | "welcome_guard" | "sc" | "user_blocked" | "live_status" | "room_change" | "room_locked" | "room_warning" | "room_limited" | "sc_delete" | "*"
    • cb: roomMessageCallback

    Returns string

unsubscribe

  • unsubscribe(id: string): void

Generated using TypeDoc