How to use options.query in android socket.io?

IO.Options options = new IO.Options();

options.forceNew=true;

options.reconnection = false;

options.query = "loginId="+loginid;

Socket socket = IO.socket("https://myserver:8000/", options);

Then I check that the request is available on the server. But do not have a request error

+4
source share
1 answer

you can use

options.query = "loginId="+loginid+"&foo=bar"; // and so on..
+2
source

Source: https://habr.com/ru/post/1616687/


All Articles