Global object accessing general state of Push functionality.
Push internally uses Atmosphere to handle connection.
Methods
(inner) decreaseSubscriptionCounters(topic)
Decreases number of subscriptions to given topic
Parameters:
Name | Type | Description |
---|---|---|
topic |
(inner) increaseSubscriptionCounters(topic)
Increases number of subscriptions to given topic
Parameters:
Name | Type | Description |
---|---|---|
topic |
(inner) setPushHandlerUrl(url)
Setups the URL that handles Atmosphere requests
Parameters:
Name | Type | Description |
---|---|---|
url |
(inner) setPushResourceUrl(url)
Setups the URL that handles Push subscriptions
Parameters:
Name | Type | Description |
---|---|---|
url |
(inner) updateConnection()
Checks whether there are requests for adding or removing topics to the list of subscribed topics.
If yes, it reconnects Atmosphere connection.
Events
error
Triggered when error is observed during Push initialization or communication
push
Triggered when Push receives data
subscribed
Fired when Push is subscribed to the specified address