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

refactor(engineio/engine): transport module #106

Merged
merged 14 commits into from
Oct 16, 2023
Merged

Conversation

Totodore
Copy link
Owner

@Totodore Totodore commented Oct 13, 2023

Add a transport module that will contain a module for each transport type:

  • polling
  • websocket

Moves every transport focused fn that were in the EngineIo struct to the corresponding transport module.
Thanks to that the separation is much better and it will be easier to add future new transports.

Flush the websocket stream only when the internal channel is drained

@tausifcreates
Copy link
Contributor

tausifcreates commented Oct 13, 2023

Wow this is some enterprise grade testing being done here.

@Totodore
Copy link
Owner Author

Currently, checks are not passing because of this issue socketio/socket.io-protocol#32

@tausifcreates
Copy link
Contributor

I hope the original maintainer responds

engineioxide/src/transport/ws.rs Fixed Show fixed Hide fixed
engineioxide/src/transport/ws.rs Fixed Show fixed Hide fixed
engineioxide/src/transport/ws.rs Fixed Show fixed Hide fixed
@Totodore Totodore merged commit f896866 into main Oct 16, 2023
7 checks passed
@Totodore Totodore deleted the refactor-transport-mod branch October 16, 2023 13:07
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