How can I add request parameters to a

247 views
Skip to first unread message

Chandan Pandey

unread,
Jun 29, 2015, 10:30:22 AM6/29/15
to soc...@googlegroups.com
I initialize my SockJs URL as
            var protocols = ['xhr-polling', 'xdr-polling',  'xdr-streaming', 'xhr-streaming'];
            var options = {protocols_whitelist: protocols, debug: true,server:tets};
            _ws = new SockJS(url, null, options);

I want to send out a request parameter , for example https://www.mysite.com/sockjs/info?someparam=tets"

Is it possible? Documentation refers that options is map which can have key value but i am not sure what key to use here.

Thanks
Chandan

Chandan Pandey

unread,
Jun 29, 2015, 11:03:32 AM6/29/15
to soc...@googlegroups.com

I verified URL at server which SockJs sends over and it is http://http_backend/cecobrowsega-3.0.0.0.31/sockjs/testapp/620/4ydem52f/xhr?null -so in absence of request param its appending a null, seems there is a way to send over request param!

Chandan Pandey

unread,
Jun 30, 2015, 9:36:15 AM6/30/15
to soc...@googlegroups.com

It is supported in latest sock js client; https://github.com/sockjs/sockjs-client/issues/72

On Monday, 29 June 2015 20:00:22 UTC+5:30, Chandan Pandey wrote:
Reply all
Reply to author
Forward
0 new messages