Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 query is available in server. But haven't query error

like image 584
Sarankhuu Avatar asked Nov 20 '15 08:11

Sarankhuu


People also ask

Can we use Socket.IO in Android?

The first step is to install the Java Socket.IO client with Gradle. We must remember adding the internet permission to AndroidManifest. xml . Now we can use Socket.IO on Android!

Does Socket.IO use WSS?

Note: You can use either https or wss (respectively, http or ws ).

Does Socket.IO work with react native?

You need to use socket. io-client on the react-native client side of things. The latest version of socket. io-client 2.2.


1 Answers

You can use

options.query = "loginId="+loginid+"&foo=bar"; // and so on..
like image 170
Siwakorn Petchuchuay Avatar answered Oct 02 '22 12:10

Siwakorn Petchuchuay