-
Notifications
You must be signed in to change notification settings - Fork 17
CoffeeScript documentation
simonoff edited this page Feb 25, 2013
·
5 revisions
Reset all
Connect to faye
Initialize Faye client
Sign to channel
- options (Object) — for signing
-
server
(String) - server url -
channel
(String) - channel name -
signature
(String) - secure hash -
timestamp
(Number) - connection timestamp -
callback
(Function) - callback function on incoming message -
connect
(function) - callback function what called after subscribing on channel -
error
(Function) - callback function what called if subscribing has an error
Handle response from Faye
- message (Object) — message object from Faye
Subscribe to channel with callback
- channel (String) — Channel name
- callback (Function) — Callback function
- options (Object) — subscription callbacks options
Unsubscribe from channel
- channel (String) — name of channel
- fullUnsubscribe (Boolean) - Full unsubscribe
Unsubscribe from all channels
Disable Faye transport
- transport (String) - name of the transport