Support query string on a sockjs url
We should support query string on a sockjs url.
If you need a module for parsing and managing URLs - take a look at https://github.com/LivePress/scriptcaller/blob/master/lib/oortle_uri.js
What majek is saying is that we should support connecting to urls containing query strings. It is not possible at the present time. I'd love to see support for this too.
I am looking into this right now and there is no easy way to add this capability. I've added support for query strings for about half of the transports, but I am about giving up. I have hard time going through the code, it's quite messy.
+1
+1
Any plans for this?
+1
Pusher has forked sock.js and enabled sending the query string for iframe transport https://github.com/pusher/sockjs-client/commit/ff88d96a91019642dedc34f391f8f412d1d3d1cc
Is this feature available in latest SockJs client build -adding query string to sockjs URL?
Yes
Ohh.. this is great. Is it only for iframe or other transports as well like xdr, xhr etc. I referred the readme but could not find how to use it or pass it in the constructor - any reference which i can use for implementing this
It is for all transports. You add it as part of the url you pass in to the constructor. I will try and get that added to the docs. If you want to file an issue for the docs, that would be great.
I created an issue but was unable to apply a Label https://github.com/sockjs/sockjs-client/issues/248