Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated call of onConnected() in Spring #1015

Open
renjithraj2005 opened this issue Nov 1, 2024 · 1 comment
Open

Duplicated call of onConnected() in Spring #1015

renjithraj2005 opened this issue Nov 1, 2024 · 1 comment

Comments

@renjithraj2005
Copy link

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.

@jakechen0816
Copy link

jakechen0816 commented Nov 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants