Data FlowBrowser(s) Browser Hookbox App publish(,…-)
More about Channels• Channel: – Name – List of subscribers – History/state• Other properties: – history: events that previously occurred (list). – history_size (int). – presenceful: share subscriber info (bool). – moderated: trigger webhook callback for any action (bool). – reflective: sender receives its own publications (bool). – polling: options to configure polling the app (dict). – … and a few others.
Publishing (server-side)import urllib, urllib2if __name__ == ‘__main__’: u = ‘http://localhost:51515/rest/publish’ p = dict(channel_name=‘foo’, payload=,‘samples’: *1,2,3,4,5+-, ....) p = urllib.urlencode(p) req = urllib2.Request(u, p) resp = urllib2.urlopen(req)