Type alias SocketHandle

SocketHandle: {
    connected: boolean;
    disconnected: boolean;
    disconnect(): void;
    emit(event, data): void;
    on(event, listener): void;
}

Type declaration

  • connected: boolean
  • disconnected: boolean
  • disconnect:function
  • emit:function
    • Parameters

      • event: string
      • data: any

      Returns void

  • on:function
    • Parameters

      • event: string
      • listener: ((data) => void)
          • (data): void
          • Parameters

            • data: any

            Returns void

      Returns void

Generated using TypeDoc