triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

IOS - ANDROID - query params conflict #66

Closed kefahB closed 6 years ago

kefahB commented 6 years ago

Hi @triniwiz

I have found an issu about sending query params.

android : accept passing params in url but it dose not accept passing in options side ios : accept passing params in options side but dose not accept in url url :-)

Like this it work.

let url = "http://127.0.0.1:3001?id=foo&user=bar"; // I try with remote url same result
socket = new SocketIO(url, {
            query: {
                 id: "foo",
                  user: "bar"
           }
});

Thanks

triniwiz commented 6 years ago

Ok i'll look into it 😄

triniwiz commented 6 years ago

Should be fixed now