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

feat(engineioxide): specific transport restrictions (fix issue #49) #70

Merged
merged 5 commits into from
Aug 18, 2023

Conversation

Totodore
Copy link
Owner

This PR adds a field in the EngineIoConfig struct so the user is able to specify a limited number of transports, by default all transports are allowed).

For example, only websocket requests will be allowed, but polling request will be denied with a 400 Bad Request error.

let conf = EngineIoConfig::builder()
            .transports([TransportType::Websocket])
            .build();

@Totodore Totodore linked an issue Aug 18, 2023 that may be closed by this pull request
@Totodore Totodore changed the title Feat(engineioxide): specific transport restrictions (fix #49) Feat(engineioxide): specific transport restrictions (fix issue #49) Aug 18, 2023
@Totodore Totodore changed the title Feat(engineioxide): specific transport restrictions (fix issue #49) feat(engineioxide): specific transport restrictions (fix issue #49) Aug 18, 2023
@Totodore Totodore merged commit 2049463 into main Aug 18, 2023
8 checks passed
@Totodore Totodore deleted the feat(engineioxide)-transport-restrictions branch August 18, 2023 20:58
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.

How to specific transports?
1 participant