Search
Preparing search index...
The search index is not available
rx-harmonyhub
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
HarmonyHub
HarmonyHub
Class HarmonyHub
The main class for managing a harmony hub
Hierarchy
HarmonyHub
Implements
SubscriptionLike
Index
Constructors
constructor
Properties
_activities
_client$
_client
Factory
_config
_current
Activity
_keep
Alive
Subscription
_stop
Client
url
Accessors
closed
config
Methods
get
Config
get
Current
Activity
get
Label
observe
press
request
resolve
Activity
send
start
Activity
unsubscribe
create
Constructors
constructor
new
Harmony
Hub
(
url
:
string
, keepAlive
?:
number
, _clientFactory
?:
HarmonyClientFactory
)
:
HarmonyHub
Parameters
url:
string
Default value
keepAlive:
number
= 5
Default value
_clientFactory:
HarmonyClientFactory
= createHarmonyClient
Returns
HarmonyHub
Properties
Protected
_activities
_activities
:
Map
<
string
,
IHarmonyActivity
>
= new Map()
Protected
_client$
_client$
:
Observable
<
IHarmonyClient
>
Protected
_client
Factory
_client
Factory
:
HarmonyClientFactory
Protected
_config
_config
:
IHarmonyConfig
Protected
_current
Activity
_current
Activity
:
IHarmonyActivity
Protected
_keep
Alive
Subscription
_keep
Alive
Subscription
:
Subscription
Protected
_stop
Client
_stop
Client
:
function
Type declaration
(
)
:
void
Returns
void
url
url
:
string
Accessors
closed
get
closed
(
)
:
boolean
Returns
boolean
Protected
config
set
config
(
conf
:
IHarmonyConfig
)
:
void
Parameters
conf:
IHarmonyConfig
Returns
void
Methods
get
Config
get
Config
(
)
:
Promise
<
IHarmonyConfig
>
Returns
Promise
<
IHarmonyConfig
>
get
Current
Activity
get
Current
Activity
(
)
:
Promise
<
IHarmonyActivity
>
Returns
Promise
<
IHarmonyActivity
>
get
Label
get
Label
(
activityId
:
string
)
:
string
Parameters
activityId:
string
Returns
string
observe
observe
(
)
:
Observable
<
IHubEvent
>
Returns
Observable
<
IHubEvent
>
press
press
(
key
:
string
, durationInMs
?:
number
)
:
Promise
<
any
>
Parameters
key:
string
Default value
durationInMs:
number
= 50
Returns
Promise
<
any
>
request
request
(
command
:
string
, body
?:
IHarmonyRequest
)
:
Promise
<
any
>
Parameters
command:
string
Optional
body:
IHarmonyRequest
Returns
Promise
<
any
>
resolve
Activity
resolve
Activity
(
idOrLabel
:
string
)
:
IHarmonyActivity
Parameters
idOrLabel:
string
Returns
IHarmonyActivity
send
send
(
command
:
string
, body
?:
IHarmonyRequest
)
:
Promise
<
any
>
Parameters
command:
string
Optional
body:
IHarmonyRequest
Returns
Promise
<
any
>
start
Activity
start
Activity
(
activityId
:
string
)
:
Promise
<
any
>
Parameters
activityId:
string
Returns
Promise
<
any
>
unsubscribe
unsubscribe
(
)
:
void
Returns
void
Static
create
create
(
ip
:
string
)
:
HarmonyHub
Parameters
ip:
string
Returns
HarmonyHub
Globals
"example"
Harmony
Discover
Harmony
Hub
Harmony
Types
Harmony
Universe
Utilities
XMPPConnection
Activity
Status
Harmony
Hub
constructor
_activities
_client$
_client
Factory
_config
_current
Activity
_keep
Alive
Subscription
_stop
Client
url
closed
config
get
Config
get
Current
Activity
get
Label
observe
press
request
resolve
Activity
send
start
Activity
unsubscribe
create
IHarmony
Activity
IHarmony
Config
IHarmony
Control
IHarmony
Device
IHarmony
Function
IHub
Digest
IHub
Event
IHarmony
Action
Generated using
TypeDoc
The main class for managing a harmony hub