Module Socket

Index

Variables

Interfaces

Functions

Variables

CLOSED: number

CONNECTED: number

ERROR: number

INITIALIZED: number

LISTENING: number

bubbleParent: boolean

Functions

addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

applyProperties(props: Dictionary)

Parameters

createTCP(params?: Dictionary): TCP

Parameters

Returns

TCP

createUDP(params?: Dictionary): UDP

Parameters

Returns

UDP

fireEvent(name: string, event: Dictionary)

Parameters

getBubbleParent(): boolean

Returns

boolean

removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean