Module: push

Global object accessing general state of Push functionality. Push internally uses Atmosphere to handle connection.
Source:

Methods

(inner) decreaseSubscriptionCounters(topic)

Decreases number of subscriptions to given topic
Parameters:
Name Type Description
topic
Source:

(inner) increaseSubscriptionCounters(topic)

Increases number of subscriptions to given topic
Parameters:
Name Type Description
topic
Source:

(inner) setPushHandlerUrl(url)

Setups the URL that handles Atmosphere requests
Parameters:
Name Type Description
url
Source:

(inner) setPushResourceUrl(url)

Setups the URL that handles Push subscriptions
Parameters:
Name Type Description
url
Source:

(inner) updateConnection()

Checks whether there are requests for adding or removing topics to the list of subscribed topics. If yes, it reconnects Atmosphere connection.
Source:

Events

error

Triggered when error is observed during Push initialization or communication
Source:

push

Triggered when Push receives data
Source:

subscribed

Fired when Push is subscribed to the specified address
Source: