-
Notifications
You must be signed in to change notification settings - Fork 240
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
Cannot connect to SocketIO server #425
Comments
Do you disable auto-connect on component to ensure it connects with params instead at your bp call time? |
Sorry for late reply, but I was doing other stuff, so I would like to get back to this issue, I updated to UE 5.4 and newest SocketIO client and issue still persist, if I run my server, I can connect to it via SocketIO Online testing tool, but with same params I cannot connect via UE. Yes auto connect is disabled in BP, so it tries to connect using params: and these are working params in online testing tools: ### EDIT: Okay I looked into my server logs and there is some connection happening:
but when I do branch in UE while checking "is connected" I always get false: |
Problem was that path was "/socket.io" instead of "socket.io", looks like its working now. But there is still issue that after connection I get in that branch "no connected condition", why? EDIT: but when I listen on "Connected" event it will fire and I will get all information like session ID. |
Hello,
I use Unreal Engine 5.3.2 on Linux, this is my Blueprint graph for connection:
TL;DR I have Persistent level where is SocketIO actor placed, so I can access it from everywhere, as you can see I just take ref from Persistent level, access SocketIO component and call Connect with params.
Problem is that my server doesn't register any connection, but when I use some SocketIO testing tool like: https://amritb.github.io/socketio-client-tool
and I set settings like:
It will connect from that SocketIO testing tool, but not from UE, even when params are the same.
My SocketIO server is written in Rust, it looks like:
For Rust I use this SocketIO server implementation: https://github.com/Totodore/socketioxide
The text was updated successfully, but these errors were encountered: