Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WSSocket

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new WSSocket(socket: WebSocket, ip: string): WSSocket

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

Protected emit

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

on

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

send

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

Generated using TypeDoc