Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Socket

Hierarchy

  • Socket

Index

Constructors

  • new Socket(token: string): Socket

Properties

restart: boolean
sequence: number
token: string

Methods

  • close(): void
  • request(event: string, data: any): Promise<any>
  • Parameters

    • event: string
    • data: any

    Returns Promise<any>

  • send(event: string, data: any, scope?: string): Promise<number>
  • Parameters

    • event: string
    • data: any
    • Optional scope: string

    Returns Promise<number>

Generated using TypeDoc