Every Wednesday, 16:00 on freenode.net #tik
TAK server und json protokoll (updated!)
Server Requirements
Browsers don't support a built-in support for XMPP protocol. However you can tunnel XMPP sessions over HTTP connections using HTTP long polling. XMPP server (Openfire in our case) has a built-in support for HTTP-managed connections called BOSH (Bidirectional streams Over Synchronous HTTP).
Openfire BOSH Configuration
Minimum demand
Maximum demand
Development is based on Strophe.js - An XMPP library for JavaScript. It's in active development, has a pubsub plugin and good documentation. Check out the book: Professional XMPP Programming with JavaScript and jQuery.
Openfire limitations
Anonymous subscriptions to pubsub nodes aren't possible with Openfire so we have to define a user (“js”?) which is used to subscribe to clocks. (see http://community.igniterealtime.org/message/194575#194575)
dependencies
Get the code from subversion: http://code.okno.be/trac/tiks/browser/jsclient
Get the code as zip: http://go.yuri.at/tikclient/tikclient.zip
You can check out a working version here: http://go.yuri.at/tikclient/tikclient.html
Check out debug version to see traffic between Openfire pubsub service and JS client: http://go.yuri.at/tikclient/tikclient.debug.html
Communication
Info from clocks
so-onOne: 17098 { slope: -1 (float) | orientation: 763 (float) | } Thu Jul 21 2011 22:54:26 GMT+0200 (CET)
clockName: tik { metainfo: value (format) | ... } datetime of last update