Some changes required from Orbited debugging

This commit is contained in:
Evan Prodromou
2009-10-04 04:05:40 -04:00
parent 035978270d
commit 27ff66c9de
3 changed files with 21 additions and 10 deletions

View File

@@ -9,13 +9,16 @@ var OrbitedUpdater = function()
// set up stomp client.
stomp = new STOMPClient();
stomp.connect(server, port, username, password);
stomp.subscribe(timeline);
stomp.onmessageframe = function(frame) {
RealtimeUpdate.receive(JSON.parse(frame.body));
};
};
stomp.onconnectedframe = function() {
stomp.subscribe(timeline);
}
stomp.connect(server, port, username, password);
}
}
}();