Questions tagged [socket.io-java-client]

socket.io-java-client is an easy to use implementation of socket.io for Java.

socket.io-java-client is an easy to use implementation of socket.io for Java.

Useful links

56 questions
2
votes
4 answers

java.net.SocketException: Connection reset With HTTPConnection

I am trying to hit some external API to fetch some data. When the data size is small, everything works fine but when the size of data returned by the API is big I get CONNECTION RESET exception. The below code is from java class InterfaceHelper and…
Hitesh Kumar
  • 643
  • 1
  • 6
  • 22
1
vote
0 answers

Multiple socket io client connections in java

I have to implement client functionality using https://github.com/socketio/socket.io-client-java. I have socket.io nodejs server 4.x version. I want to establish around 300-700 socket connections using threadpool ThreadPoolExecutor in a loop after…
Areej Fatimah
  • 251
  • 2
  • 11
1
vote
1 answer

Send custom header in Socket.io-client

I have an issue while sending the custom header in socket.io-client. Everything is okay at server side integration/code because iOS code is working fine. Here is code which I have in iOS: let manager = SocketManager(socketURL: URL(string:…
Ajay Chaudhary
  • 1,993
  • 15
  • 23
1
vote
1 answer

Using SharedPreferences data in Application class

I am developing an app and I use Socket.io on it, I initialize the socket in a class that extends Application and looks like this: public class Inicio extends Application{ private Socket mSocket; private SharedPreferences spref; …
1
vote
0 answers

How to make Java Socket.IO client decode/encode binary, not json?

I'm using Socket.IO client library from this repository: io.socket:socket.io-client:1.0.0 and server library from this com.corundumstudio.socketio:netty-socketio:1.7.12. I'm emitting a simple data object between client and server. Server works in…
Gintas_
  • 4,940
  • 12
  • 44
  • 87
1
vote
1 answer

Reactor Flux proxy for Socket.IO-client Java

I'm implementing Spring WebFlux end-point that should get data from Socket.IO-client Java. I don't understand the way to collect incoming data into Flux stream. Can I create new Flux some how and subscribe it to that incoming data? Thanks for…
1
vote
1 answer

Socket.io listen to room without join

I'd like to broadcast a message to everyone that listen to this room, not only who join the room. I do receive another call from server but I didn't get any call for this 'room' listener. Server: Node.js io.on('connection', function(socket){ …
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
1
vote
0 answers

Android NodeJs socket.emit goes wrong acting like socket.broadcast

I have a problem when using socket.emit from Nodejs because all the Android users are getting the message instead of the one that starts the conversation. Let me explain: From android I have that code run by a user when he create a new…
Mael Fosso
  • 360
  • 6
  • 14
1
vote
1 answer

Weird Error in Logcat with Socket.io Android client

I have been using (and struggling with) Socket.io native Android client for a little while now and recently as I moved all my code from a Socket.io connexion stored in a static variable in MyApplication extends Application to a SocketService extends…
Mouradif
  • 2,666
  • 1
  • 20
  • 37
1
vote
1 answer

Wrapping my head around Socket.io Client API

Normally, when we use HTTP requests, we have a specific set of methods/callbacks that would be called when the request succeeds/fails. Each connection request could have its own callback methods, which made structuring of code very easy. So now that…
ShahiM
  • 3,179
  • 1
  • 33
  • 58
1
vote
1 answer

Error running Gottox/socket.io-java-client

Hi So i am trying to run the socket.io-java-client from Gottox and simple by just opening the project in eclips(import) AND running BasicExample.java i am getting this error Error while handshaking Server returned HTTP response code: 400 for…
user614946
  • 599
  • 5
  • 10
  • 27
0
votes
0 answers

Disable SSL/TSL certificate using Socket.IO in android

This is my code of Socket Service. I want to use rejectUnauthorized: false, but this is available only for node, after findings I used TrustManager class to achieve this but it not working I am not able to connect to server, It always gives…
userVani
  • 47
  • 4
0
votes
0 answers

How to fix socket.io-java-client not work properly in fabric mods

I'm trying to use websocket.io-client java for my minecraft fabric mods so i added this code in my build.gradle file dependencies { // other implementation implementation 'org.json:json:20211205' implementation…
0
votes
1 answer

Why am I not seeing any input on this server-client setup?

I'm trying to use socket.io for a work project. In order to learn how this library works, I want to setup a test server and client in which I can run some code. For now, I have set up a working JavaScript server as per the example listed here:…
edoreld
  • 303
  • 1
  • 17
0
votes
0 answers

Exception in thread "Thread-0" java.lang because object is not initialized

My whole source code is supposed to be a multi-chat created in Java that uses RSA to keep the messages encrypted until the clients receive their message on their side it gets decrypted. The problem is that I am getting an error in my Thread block.…
upsite
  • 21
  • 4