sockjs-client icon indicating copy to clipboard operation
sockjs-client copied to clipboard

Support query string on a sockjs url

Open majek opened this issue 14 years ago • 13 comments

We should support query string on a sockjs url.

majek avatar May 21 '12 11:05 majek

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

gleber avatar May 21 '12 17:05 gleber

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.

kjagiello avatar Aug 18 '12 10:08 kjagiello

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.

kjagiello avatar Aug 18 '12 12:08 kjagiello

+1

macinjosh32 avatar Aug 24 '13 06:08 macinjosh32

+1

sameid avatar Feb 18 '14 14:02 sameid

Any plans for this?

3rd-Eden avatar Apr 21 '14 13:04 3rd-Eden

+1

financedemo avatar May 26 '14 09:05 financedemo

Pusher has forked sock.js and enabled sending the query string for iframe transport https://github.com/pusher/sockjs-client/commit/ff88d96a91019642dedc34f391f8f412d1d3d1cc

herkyl avatar May 26 '14 10:05 herkyl

Is this feature available in latest SockJs client build -adding query string to sockjs URL?

cpandey05 avatar Jun 29 '15 19:06 cpandey05

Yes

brycekahle avatar Jun 29 '15 19:06 brycekahle

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

cpandey05 avatar Jun 29 '15 20:06 cpandey05

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.

brycekahle avatar Jun 29 '15 20:06 brycekahle

I created an issue but was unable to apply a Label https://github.com/sockjs/sockjs-client/issues/248

cpandey05 avatar Jun 30 '15 13:06 cpandey05