ISocket interface

Properties

isConnected

Methods

close()
connect(string)
setOnCloseHandler((x: any) => void)
setOnErrorHandler((x: any) => void)
setOnMessageHandler((x: any) => void)
write(INodeBuffer)

Property Details

isConnected

isConnected: boolean

Property Value

boolean

Method Details

close()

function close(): any

Returns

any

connect(string)

function connect(serverAddress: string): Promise<void>

Parameters

serverAddress

string

Returns

Promise<void>

setOnCloseHandler((x: any) => void)

function setOnCloseHandler(handler: (x: any) => void): any

Parameters

handler

(x: any) => void

Returns

any

setOnErrorHandler((x: any) => void)

function setOnErrorHandler(handler: (x: any) => void): any

Parameters

handler

(x: any) => void

Returns

any

setOnMessageHandler((x: any) => void)

function setOnMessageHandler(handler: (x: any) => void): any

Parameters

handler

(x: any) => void

Returns

any

write(INodeBuffer)

function write(buffer: INodeBuffer): any

Parameters

buffer
INodeBuffer

Returns

any