Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SocketEvent<P, R>

Type parameters

  • P: object

  • R

Hierarchy

Index

Methods

subscribe

  • subscribe(params: P, cb: function): this
  • Subscribe to this event

    Parameters

    • params: P

      Payload to submit to the server

    • cb: function

      Handler for event broadcasts

        • (data: R): void
        • Parameters

          • data: R

          Returns void

    Returns this

unsubscribe

  • unsubscribe(): void

Generated using TypeDoc