Search
Preparing search index...
The search index is not available
antidote_ts_client
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"antidoteConnection"
AntidoteConnection
Class AntidoteConnection
Hierarchy
AntidoteConnection
Index
Constructors
constructor
Properties
buffer
host
port
request
Timeout
Ms
requests
socket
Methods
close
handle
Error
handle
Response
invalidate
Socket
on
Close
on
Connect
on
Data
on
Error
on
Request
Timeout
on
Timeout
read
Messages
From
Buffer
reconnect
reject
reject
Pending
resolve
send
Request
Constructors
constructor
new
Antidote
Connection
(
port
:
number
, host
:
string
)
:
AntidoteConnection
Parameters
port:
number
host:
string
Returns
AntidoteConnection
Properties
Private
buffer
buffer
:
ByteBuffer
= new ByteBuffer()
Private
host
host
:
string
|
undefined
Private
port
port
:
number
request
Timeout
Ms
request
Timeout
Ms
:
number
= 1000
Private
requests
requests
:
ApbRequest
[]
= []
Private
socket
socket
:
Socket
|
undefined
Methods
close
close
(
)
:
void
Returns
void
Private
handle
Error
handle
Error
(
errorCode
:
number
, errorMsg
:
string
)
:
void
Parameters
errorCode:
number
errorMsg:
string
Returns
void
Private
handle
Response
handle
Response
(
code
:
number
, decoded
:
any
)
:
void
Parameters
code:
number
decoded:
any
Returns
void
Private
invalidate
Socket
invalidate
Socket
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Private
on
Close
on
Close
(
hasError
:
boolean
)
:
void
Parameters
hasError:
boolean
Returns
void
Private
on
Connect
on
Connect
(
)
:
void
Returns
void
Private
on
Data
on
Data
(
data
:
Buffer
)
:
void
Parameters
data:
Buffer
Returns
void
Private
on
Error
on
Error
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Private
on
Request
Timeout
on
Request
Timeout
(
)
:
void
Returns
void
Private
on
Timeout
on
Timeout
(
)
:
void
Returns
void
Private
read
Messages
From
Buffer
read
Messages
From
Buffer
(
)
:
void
Returns
void
Private
reconnect
reconnect
(
)
:
void
Returns
void
Private
reject
reject
(
req
:
ApbRequest
, err
:
Error
)
:
void
Parameters
req:
ApbRequest
err:
Error
Returns
void
Private
reject
Pending
reject
Pending
(
err
:
Error
)
:
void
rejects all requests, which are still open
Parameters
err:
Error
Returns
void
Private
resolve
resolve
(
req
:
ApbRequest
, response
:
any
)
:
void
Parameters
req:
ApbRequest
response:
any
Returns
void
send
Request
send
Request
(
messageCode
:
number
, encodedMessage
:
ArrayBuffer
)
:
Promise
<
any
>
Parameters
messageCode:
number
encodedMessage:
ArrayBuffer
Returns
Promise
<
any
>
Globals
"antidote"
"antidote
Connection"
"main"
"message
Codes"
"test"
Antidote
Connection
constructor
buffer
host
port
request
Timeout
Ms
requests
socket
close
handle
Error
handle
Response
invalidate
Socket
on
Close
on
Connect
on
Data
on
Error
on
Request
Timeout
on
Timeout
read
Messages
From
Buffer
reconnect
reject
reject
Pending
resolve
send
Request
Apb
Request
Generated using
TypeDoc
rejects all requests, which are still open