https://github.com/tmc/pystreamwatcher
raw example of using xmpp in the browser for real-time updates (using BOSH)
https://github.com/tmc/pystreamwatcher
Last synced: about 1 year ago
JSON representation
raw example of using xmpp in the browser for real-time updates (using BOSH)
- Host: GitHub
- URL: https://github.com/tmc/pystreamwatcher
- Owner: tmc
- License: bsd-2-clause
- Created: 2010-02-21T00:51:41.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-02-21T03:52:21.000Z (over 16 years ago)
- Last Synced: 2025-03-24T09:47:14.435Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
This is a very raw proof of concept that shows an example of streaming content to many users utilizing XMPP's pubsub and BOSH extensions.
This has no architecture or finesse, I know. It's a demo.
used libraries:
Strophe.js
xmpppy
tweetstream
pydns (for SRV record lookup)
external requirements:
running jabber server with bosh, pubsub and anonymous sasl enabled
example jabber configuration:
install ejabberd, start it, create a user (username, jabber host, password)
$ ejabberdctl register pubsub_demo localhost pubsub_d3m0
In ejabberd conf you'll want something akin to this:
{host_config, "localhost", [{auth_method, [internal, anonymous]},
{allow_multiple_connections, true},
{anonymous_protocol, sasl_anon}]}.
running:
place auth info into twitter_producer.py, run it