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

Feature: Error Adapter #40

Merged
merged 9 commits into from
Jun 30, 2023
Merged

Feature: Error Adapter #40

merged 9 commits into from
Jun 30, 2023

Conversation

Totodore
Copy link
Owner

Currently the Adapter trait was not returning any error. However for future remote adapters it will be necessary.

Therefore the Adapter has now a bounded Error type.

For the LocalAdapter it is an Infallible error.

In order to handle these error without adding generic adapter to all the errors, there is now an error wrapper AdapterError which wraps a Box<dyn std::error>.

socketioxide/src/adapter.rs Fixed Show fixed Hide fixed
socketioxide/src/client.rs Fixed Show fixed Hide fixed
@Totodore
Copy link
Owner Author

@biryukovmaxim I'll probably merge this before yours, so you might have to rebase on this. It may have some conflicts with adapter send errors (broadcast and broadcast_with_ack).

@Totodore Totodore merged commit 18427d3 into main Jun 30, 2023
@Totodore Totodore deleted the ft-error-adapter branch June 30, 2023 15:22
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.

1 participant