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

fix: waitFor message latency causing missed packets #33

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Totodore
Copy link
Contributor

@Totodore Totodore commented Oct 15, 2023

This PR fix issue #32. The proposed solution is to extend the ws WebSocket instance to add an async iterator working with the utility function createWebSocketStream coming from the ws library.

It has a minimal impact on the test suite codebase.

@darrachequesne
Copy link
Member

Hi! Thanks for the pull request 👍

I think it could also be fixed with a buffer, something like this: 49fe300

What do you think?

@Totodore
Copy link
Contributor Author

Your solution also work, it has the advantage that it is also working on the browser whereas mine only works for node.js (because it uses the official stream implementation).

This issue also need to be fixed on the engine.io test-suite (I already prepared all the patches with my solution). But if you prefer to do your's, no problem.

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.

2 participants