Search
Preparing search index...
The search index is not available
uhst
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"RelayClient"
RelayClient
Class RelayClient
Hierarchy
RelayClient
Implements
UhstRelayClient
Index
Constructors
constructor
Properties
network
Client
relay
Url
Methods
init
Client
init
Host
send
Message
subscribe
ToMessages
Constructors
constructor
new
Relay
Client
(
relayUrl
:
string
, networkClient
?:
NetworkClient
)
:
RelayClient
Parameters
relayUrl:
string
Optional
networkClient:
NetworkClient
Returns
RelayClient
Properties
network
Client
network
Client
:
NetworkClient
Private
relay
Url
relay
Url
:
string
Methods
init
Client
init
Client
(
hostId
:
string
)
:
Promise
<
ClientConfiguration
>
Parameters
hostId:
string
Returns
Promise
<
ClientConfiguration
>
init
Host
init
Host
(
hostId
?:
undefined
|
string
)
:
Promise
<
HostConfiguration
>
Parameters
Optional
hostId:
undefined
|
string
Returns
Promise
<
HostConfiguration
>
send
Message
send
Message
(
token
:
string
, message
:
any
, sendUrl
?:
undefined
|
string
)
:
Promise
<
any
>
Parameters
token:
string
message:
any
Optional
sendUrl:
undefined
|
string
Returns
Promise
<
any
>
subscribe
ToMessages
subscribe
ToMessages
(
token
:
string
, messageHandler
:
MessageHandler
, relayErrorHandler
:
Function
, relayEventHandler
?:
RelayEventHandler
, receiveUrl
?:
undefined
|
string
)
:
Promise
<
MessageStream
>
Parameters
token:
string
messageHandler:
MessageHandler
relayErrorHandler:
Function
Optional
relayEventHandler:
RelayEventHandler
Optional
receiveUrl:
undefined
|
string
Returns
Promise
<
MessageStream
>
Globals
"
Relay
Client"
Relay
Client
constructor
network
Client
relay
Url
init
Client
init
Host
send
Message
subscribe
ToMessages
Generated using
TypeDoc