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

Migration to socketio.io v3 #70

Merged
merged 2 commits into from
Mar 3, 2021
Merged

Migration to socketio.io v3 #70

merged 2 commits into from
Mar 3, 2021

Conversation

Jomshir98
Copy link
Contributor

Migrates server to socket.io version 3, while keeping it compatible with current client.

I tested everything locally with current client and didn't find any problems.
What might be problem is, if ORIGINS was set in environment to something else than DefaultOrigins.
I also didn't test new origin values, as I can't do so without access to bondageprojects.com website.

Reason for upgrade - measured times to send/receive 10000 chat messages:
v2: 19208ms (And sockets started to time out)
v3: 1318ms, no slowdown

@Ben987 Ben987 merged commit 39de8f4 into Ben987:master Mar 3, 2021
@Jomshir98 Jomshir98 deleted the socketio-3 branch March 3, 2021 19:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants