Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseSocket

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

ip

ip: string = "0.0.0.0"

listeners

listeners: Object

socket

socket: any

Methods

close

  • close(): void

debugListener

  • debugListener(sender: string, type: string, data: object): void
  • Parameters

    • sender: string
    • type: string
    • data: object

    Returns void

Protected emit

  • emit(type: any, data: any): void

on

  • on(type: string, func: Function): void
  • Parameters

    • type: string
    • func: Function

    Returns void

send

  • send(type: string, data: Object): void

Generated using TypeDoc