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

Socket disconnects automatically after 1 minut aprox. #381

Open
jgallegor opened this issue Jun 29, 2023 · 6 comments
Open

Socket disconnects automatically after 1 minut aprox. #381

jgallegor opened this issue Jun 29, 2023 · 6 comments
Labels

Comments

@jgallegor
Copy link

When I connect successfully to my SocketIO Server, after a minute it disconnects automatically, showing the following message:

SocketIO: SocketIO Disconnected 3gNM4gQ3pQfe3pvrAAAa reason: CLOSE_REASON_NORMAL

My Server isn't closing the connection itself, so I don't know why it is being closed alone.

This is a screenshot of my SocketIO component configuration if it helps.
image

Any idea?

@getnamo
Copy link
Owner

getnamo commented Jul 5, 2023

plugin version? platform? what type of server are you running on the other side? (nodejs? python?)

@jgallegor
Copy link
Author

Plugin version 2.6.0. Server runnning the Socket IO is a nodejs server with the socketio version compatible with plugin.

@getnamo
Copy link
Owner

getnamo commented Jul 7, 2023

Are you sending binary data? Does the chat example server work for you without disconnecting https://github.com/getnamo/SocketIOClient-Unreal-Example/releases work?

Come to think of it 1min time out sounds like GC interval, how are you creating your component/storing/referencing it in blueprint?

@jgallegor
Copy link
Author

Just tried the chat example and works fine, but this example uses http from socket.io module, and my server is using server.io.
It seems an issue produced by the option of the Server of socket.io "connectTimeout" (The number of ms before disconnecting a client that has not successfully joined a namespace).

Chat example isn't using this option in the Client neither controlling namespace in the Server side.

@getnamo
Copy link
Owner

getnamo commented Jul 11, 2023

Sounds like you just need to join a namespace which is supported https://github.com/getnamo/SocketIOClient-Unreal#namespaces

@jgallegor
Copy link
Author

But if no namespace is specified, it will automatically join namespace '/', which is also the default namespace in the server if not specified (which is my case).
So this would have to work, right? Or am I missing something?

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

No branches or pull requests

2 participants