1 // Update the local timeline from a Orbited server
3 var OrbitedUpdater = function()
7 init: function(server, port, timeline, username, password)
9 // set up stomp client.
10 stomp = new STOMPClient();
12 stomp.onmessageframe = function(frame) {
13 RealtimeUpdate.receive(JSON.parse(frame.body));
16 stomp.onconnectedframe = function() {
17 stomp.subscribe(timeline);
20 stomp.connect(server, port, username, password);