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

*** Socke.io Client in Godot Engine *** #4761

Open
Lazhor opened this issue Jul 4, 2023 · 3 comments
Open

*** Socke.io Client in Godot Engine *** #4761

Lazhor opened this issue Jul 4, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Lazhor
Copy link

Lazhor commented Jul 4, 2023

Is your feature request related to a problem? Please describe.
I was frustrated, I created my entire server using Socket.io, and although I was using Unreal, because it is a 2D game, I was migrating to Godot, but Socket.io does not have a library compatible with GDSCript.

Describe the solution you'd like
I wish there was a Socket.io Client for the Godot Engine as well

Describe alternatives you've considered
The solution is basically simple, just create a solution (client) for Godot and so we can connect to the server

Additional context
Godot Uses GDScript which is very similar to Python, I think it will not be complex to convert the existing Library so that Godot developers use Socket.io as a Client in it

@Lazhor Lazhor added the enhancement New feature or request label Jul 4, 2023
@nefrace
Copy link

nefrace commented Jul 5, 2023

Socket.IO does not provide any new connection type. It's just a WebSocket library and you can actually just use internal WebSocketPeer class for that.

@Lazhor
Copy link
Author

Lazhor commented Jul 5, 2023

Unfortunately WebSocketPeer doesn't work with Socket.IO, only with WS, for Socket.IO to connect to the server, the Socket.IO client itself is needed.

@teamclouday
Copy link

I wrote a simple socket io client for Godot by following the protocols. It has some limitations but hope it helps.
https://github.com/teamclouday/GodotSocketIO

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

No branches or pull requests

3 participants