diff options
author | Evan Prodromou <evan@status.net> | 2009-10-04 04:05:40 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-10-04 04:05:40 -0400 |
commit | 27ff66c9de64a60cb3219f6d823cb290d4f18c01 (patch) | |
tree | 48305718abdf01a325ce92622cf74fd6cd7c1863 /plugins/Orbited/orbitedupdater.js | |
parent | 035978270d609b650b8e32f252366e0e75b12507 (diff) |
Some changes required from Orbited debugging
Diffstat (limited to 'plugins/Orbited/orbitedupdater.js')
-rw-r--r-- | plugins/Orbited/orbitedupdater.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/Orbited/orbitedupdater.js b/plugins/Orbited/orbitedupdater.js index d70f4a4fd..8c5ab3b73 100644 --- a/plugins/Orbited/orbitedupdater.js +++ b/plugins/Orbited/orbitedupdater.js @@ -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); + } } }(); |