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

Never Connects #1

Open
sinfulspartan opened this issue Oct 13, 2023 · 4 comments
Open

Never Connects #1

sinfulspartan opened this issue Oct 13, 2023 · 4 comments

Comments

@sinfulspartan
Copy link

sinfulspartan commented Oct 13, 2023

It seems like the handshake never works. It isn't able to get socket io to send the open packet with the sid.
Also I confirmed that the browsers socket.io-client works and can connect to the server.

@sinfulspartan
Copy link
Author

sinfulspartan commented Oct 13, 2023

Figured out the solution:
/socket.io/ was missing from the url string

func _init(url: String):
url = _preprocess_url(url)
_url = "%ssocket.io/?EIO=4&transport=websocket" % url

@teamclouday
Copy link
Owner

I see this depends on the setup of your socket io server. You can also append socket.io to the end of url if that's the default setup.

@sinfulspartan
Copy link
Author

sinfulspartan commented Oct 13, 2023 via email

@teamclouday
Copy link
Owner

Thanks for point it out! Will add to the README

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