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
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!
Note: You can use either https or wss (respectively, http or ws ).
You need to use socket. io-client on the react-native client side of things. The latest version of socket. io-client 2.2.
You can use
options.query = "loginId="+loginid+"&foo=bar"; // and so on..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With