Interface TCPSocket

Hierarchy

Index

Properties

Methods

Properties

public bubbleParent: boolean

public hostName: string

public isValid: boolean

public mode: number

public port: number

public stripTerminator: boolean

Methods

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

Parameters

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

public applyProperties(props: Dictionary)

Parameters

public close()

public connect()

public fireEvent(name: string, event: Dictionary)

Parameters

public getBubbleParent(): boolean

Returns

boolean

public getHostName(): string

Returns

string

public getIsValid(): boolean

Returns

boolean

public getMode(): number

Returns

number

public getPort(): number

Returns

number

public getStripTerminator(): boolean

Returns

boolean

public listen()

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

Parameters

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

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setHostName(hostName: string)

Parameters

  • hostName: string

public setIsValid(isValid: boolean)

Parameters

  • isValid: boolean

public setMode(mode: number)

Parameters

  • mode: number

public setPort(port: number)

Parameters

  • port: number

public setStripTerminator(stripTerminator: boolean)

Parameters

  • stripTerminator: boolean

public write(data: any, sendTo: number)

Parameters

  • data: any
  • sendTo: number

public write(data: string, sendTo: number)

Parameters

  • data: string
  • sendTo: number