Search
Preparing search index...
The search index is not available
uhst
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ApiClient"
ApiClient
Class ApiClient
Hierarchy
ApiClient
Implements
UhstRelayClient
Index
Constructors
constructor
Properties
relay
Client
relay
Client
Provider
relay
Urls
Provider
Methods
init
Client
init
Host
send
Message
subscribe
ToMessages
Constructors
constructor
new
Api
Client
(
relayClientProvider
:
RelayClientProvider
, relayUrlsProvider
?:
RelayUrlsProvider
)
:
ApiClient
Parameters
relayClientProvider:
RelayClientProvider
Optional
relayUrlsProvider:
RelayUrlsProvider
Returns
ApiClient
Properties
relay
Client
relay
Client
:
RelayClient
Private
relay
Client
Provider
relay
Client
Provider
:
RelayClientProvider
relay
Urls
Provider
relay
Urls
Provider
:
RelayUrlsProvider
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
relayEventHandler:
RelayEventHandler
Optional
receiveUrl:
undefined
|
string
Returns
Promise
<
MessageStream
>
Globals
"
Api
Client"
Api
Client
constructor
relay
Client
relay
Client
Provider
relay
Urls
Provider
init
Client
init
Host
send
Message
subscribe
ToMessages
Generated using
TypeDoc