socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

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

Open Lazhor opened this issue 2 years ago • 3 comments

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 avatar Jul 04 '23 23:07 Lazhor

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.

nefrace avatar Jul 05 '23 21:07 nefrace

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.

Lazhor avatar Jul 05 '23 21:07 Lazhor

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

teamclouday avatar Oct 12 '23 16:10 teamclouday