netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

Duplicated call of onConnected() in Spring

Open renjithraj2005 opened this issue 1 year ago • 1 comments

I'm trying to set up a Socket.IO server with Spring boot, which also serves as an API for my application. I have a React frontend that consumes socket

The problem is when I call my service to connect, it calls the onConnected method of my Spring back twice. I tried to simplify it by removing, for example, the call to the client.joinRoom(sessionCode) method but the logs remain the same.

renjithraj2005 avatar Nov 01 '24 12:11 renjithraj2005

Yes, I had this same issue. In Java, addConnectListener is called twice when client connects to the server.

Update: Seems It is fixed in 2.0.12.

jakechen0816 avatar Nov 04 '24 18:11 jakechen0816