Skip to content
ideawu edited this page Feb 19, 2014 · 4 revisions

Subscribe to a channel

With long-polling

http://127.0.0.1:8100/sub?cname=$channel_name&seq=$last_seq&cb=$jsonp_callback&token=$token
or
http://127.0.0.1:8100/poll?cname=$channel_name&seq=$last_seq&cb=$jsonp_callback&token=$token

With streaming(endless HTTP chunk)

http://127.0.0.1:8100/stream?cname=$channel_name&seq=$last_seq&token=$token

Publish/Push message

http://127.0.0.1:8000/pub?cname=$channel_name&content=$content

$content must be json encoded string, without the leading and trailing quote pair.

Clone this wiki locally