triniwiz / nativescript-socketio

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

Change query of current instance #98

Open FlawaCLV opened 4 years ago

FlawaCLV commented 4 years ago

Is there a way to change the query without having to create a new instance ?

const socket = new SocketIO(url, {
    query: {
        foo: "bar"
    }
});

Could be great to do be able to do something like this

socket.query = {
    foo: "bar"
};
flodaniel commented 4 years ago

+1