ISocket interface
Properties
is |
Methods
close() | |
connect(string) | |
set |
|
set |
|
set |
|
write(INode |
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