Search
Preparing search index...
The search index is not available
@robotical/ricjs
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@robotical/ricjs
RICChannelWebSocket
Class RICChannelWebSocket
Hierarchy
RICChannelWebSocket
Implements
RICChannel
Index
Constructors
constructor
Properties
_is
Connected
_on
Conn
Event
_requested
Batch
Ack
Size
_requested
File
Block
Size
_ric
Msg
Handler
_web
Socket
Methods
_on
Msg
Rx
_web
Socket
Open
_ws
Connect
connect
disconnect
fh
Batch
Ack
Size
fh
File
Block
Size
get
Connected
Locator
is
Connected
pause
Connection
requires
Subscription
send
Tx
Msg
send
Tx
Msg
No
Await
set
Msg
Handler
set
On
Conn
Event
Constructors
constructor
new RICChannel
Web
Socket
(
)
:
RICChannelWebSocket
Returns
RICChannelWebSocket
Properties
Private
_is
Connected
_is
Connected
:
boolean
= false
Private
_on
Conn
Event
_on
Conn
Event
:
null
|
RICConnEventFn
= null
Private
_requested
Batch
Ack
Size
_requested
Batch
Ack
Size
:
number
= 10
Private
_requested
File
Block
Size
_requested
File
Block
Size
:
number
= 500
Private
_ric
Msg
Handler
_ric
Msg
Handler
:
null
|
RICMsgHandler
= null
Private
_web
Socket
_web
Socket
:
any
= null
Methods
_on
Msg
Rx
_on
Msg
Rx
(
msg
:
null
|
Uint8Array
)
:
void
Parameters
msg:
null
|
Uint8Array
Returns
void
Private
_web
Socket
Open
_web
Socket
Open
(
url
:
string
)
:
Promise
<
WebSocket
>
Parameters
url:
string
Returns
Promise
<
WebSocket
>
_ws
Connect
_ws
Connect
(
locator
:
string
|
object
)
:
Promise
<
boolean
>
Parameters
locator:
string
|
object
Returns
Promise
<
boolean
>
connect
connect
(
locator
:
string
|
object
)
:
Promise
<
boolean
>
Parameters
locator:
string
|
object
Returns
Promise
<
boolean
>
disconnect
disconnect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
fh
Batch
Ack
Size
fh
Batch
Ack
Size
(
)
:
number
Returns
number
fh
File
Block
Size
fh
File
Block
Size
(
)
:
number
Returns
number
get
Connected
Locator
get
Connected
Locator
(
)
:
string
|
object
Returns
string
|
object
is
Connected
is
Connected
(
)
:
boolean
Returns
boolean
pause
Connection
pause
Connection
(
pause
:
boolean
)
:
void
Parameters
pause:
boolean
Returns
void
requires
Subscription
requires
Subscription
(
)
:
boolean
Returns
boolean
send
Tx
Msg
send
Tx
Msg
(
msg
:
Uint8Array
, sendWithResponse
:
boolean
)
:
Promise
<
boolean
>
Parameters
msg:
Uint8Array
sendWithResponse:
boolean
Returns
Promise
<
boolean
>
send
Tx
Msg
No
Await
send
Tx
Msg
No
Await
(
msg
:
Uint8Array
, sendWithResponse
:
boolean
)
:
Promise
<
boolean
>
Parameters
msg:
Uint8Array
sendWithResponse:
boolean
Returns
Promise
<
boolean
>
set
Msg
Handler
set
Msg
Handler
(
ricMsgHandler
:
RICMsgHandler
)
:
void
Parameters
ricMsgHandler:
RICMsgHandler
Returns
void
set
On
Conn
Event
set
On
Conn
Event
(
connEventFn
:
RICConnEventFn
)
:
void
Parameters
connEventFn:
RICConnEventFn
Returns
void
Exports
RICChannel
Web
Socket
constructor
_is
Connected
_on
Conn
Event
_requested
Batch
Ack
Size
_requested
File
Block
Size
_ric
Msg
Handler
_web
Socket
_on
Msg
Rx
_web
Socket
Open
_ws
Connect
connect
disconnect
fh
Batch
Ack
Size
fh
File
Block
Size
get
Connected
Locator
is
Connected
pause
Connection
requires
Subscription
send
Tx
Msg
send
Tx
Msg
No
Await
set
Msg
Handler
set
On
Conn
Event
Generated using
TypeDoc