Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RsSubscriber

Hierarchy

  • RsSubscriber

Index

Constructors

Properties

Methods

Constructors

constructor

  • new RsSubscriber(socketId: string, send: (msg: string) => any): RsSubscriber
  • Parameters

    • socketId: string
    • send: (msg: string) => any
        • (msg: string): any
        • Parameters

          • msg: string

          Returns any

    Returns RsSubscriber

Properties

Private _id

_id: string

Private _send

_send: (msg: string) => any

Type declaration

    • (msg: string): any
    • Parameters

      • msg: string

      Returns any

Private _subscriptions

_subscriptions: Map<string, Subscription> = new Map<string, Subscription>()

Methods

isEmpty

  • isEmpty(): boolean

subscribe

  • subscribe(subjectId: string, subject: Subject<any>): boolean
  • Parameters

    • subjectId: string
    • subject: Subject<any>

    Returns boolean

unsubscribe

Generated using TypeDoc