Closed GoogleCodeExporter closed 8 years ago
Sorry I forgot de debug line:
WEBSOCKET::0a42fb48-6dd2-4369-b608-66eba2011228::Processing
Message:<dummy><stream:stream to='******' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0' /></dummy>
Original comment by sonny.pi...@gmail.com
on 30 Oct 2011 at 8:57
Can you share a sample websocket client file so that I can replicate the same?
Original comment by anup.kal...@gmail.com
on 31 Oct 2011 at 10:38
@Anup: We've been using this one: https://github.com/superfeedr/strophejs/
It will load up in the browser - Chrome specifically. I remember testing in
Firefox too. You can ask for more info. on this on the github page though.
Original comment by dhruvb...@gmail.com
on 31 Oct 2011 at 12:10
Original comment by dhruvb...@gmail.com
on 31 Oct 2011 at 12:11
@Anup: Loading up examples/basic.html in your browser should do the trick.
Also, change this line in basic.js "var BOSH_SERVICE =
'http://bosh.metajack.im:5280/xmpp-httpbind'" to something more appropriate.
From the debug logs pasted, it seems as if the crash occurs when the stream is
being created.
Original comment by dhruvb...@gmail.com
on 31 Oct 2011 at 12:17
@dhruvbird: is there any websocket client implementation in strophe? I believe
this is only happening when trying to connect via a websocket not bosh. Bosh is
already well tested.
Original comment by anup.kal...@gmail.com
on 31 Oct 2011 at 2:30
Yes, it is happening with WebSocket.
The Strophe with WebSocket implementation can be found here:
https://github.com/superfeedr/strophejs/tree/protocol-ed
If you would like, I can create a little test case.
But it seems here to appends with every browser/websocket method.
Original comment by sonny.pi...@gmail.com
on 31 Oct 2011 at 3:17
@Anup: yes, it is a websocket only thing. Sorry gave the wrong link. This is
the right one: https://github.com/superfeedr/strophejs/tree/protocol-ed
Try basic.html. Changing basic.js to include:
proto = new Strophe.Websocket( WS_SERVICE ); should do the trick. Also, update
"var WS_SERVICE = 'ws://msgboy.com:5288/ws-xmpp'" appropriately (it should be
'ws://localhost:5280/' - don't go through an HTTP proxy for this one).
Original comment by dhruvb...@gmail.com
on 31 Oct 2011 at 3:27
Found the bug. I was not binding the stat_stream_add function to StreamStore.
Will fix and upload by tonight.
Original comment by anup.kal...@gmail.com
on 1 Nov 2011 at 2:49
@Anup, but isn't it already part of the StreamStore prototype?
Original comment by dhruvb...@gmail.com
on 1 Nov 2011 at 11:14
Yes it is. But it is assigned to the bosh event pipe and called as a method
of bosh event pipe (bosh_server) from the web socket implementation. And
the web socket implementation does not know anything about the stream
store.
Original comment by anup.kal...@gmail.com
on 2 Nov 2011 at 2:04
Its fixed and committed as r454.
Original comment by anup.kal...@gmail.com
on 2 Nov 2011 at 1:55
@Anup @dhruvbird Thanks!
Original comment by sonny.pi...@gmail.com
on 2 Nov 2011 at 1:59
@sonny, please could you confirm and close if fixed at your end too.
Original comment by dhruvb...@gmail.com
on 2 Nov 2011 at 2:51
I confirm the bug is fixed. But since I'm not the owner of this issue I can't
close it.
Original comment by sonny.pi...@gmail.com
on 2 Nov 2011 at 3:37
Original comment by dhruvb...@gmail.com
on 2 Nov 2011 at 4:04
Original issue reported on code.google.com by
sonny.pi...@gmail.com
on 30 Oct 2011 at 8:42