-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(socketio/connect): Add middlewares to namespace (#280)
* feat(socketio/handler): add a `with` middleware fn to any connect handler. * feat(socketio/packet): custom `connect_error` packet * feat(socketio/handler): return error from middleware. * fix(clippy): async fn call rather than impl `Future` * fix(fmt) * chore: bump MSRV to 1.75.0 * test(socketio/connect): add middleware tests * feat(socketio/connect): connect to ns only after connect handler result. * fix(fmt) * fix(clippy) * test(socketio/ack): fix ack test for new `connect` handler behaviour * test(io): unused `Result` lint * feat(socketio/conect): correct behaviour with connect after middleware * Revert "test(socketio/ack): fix ack test for new `connect` handler behaviour" This reverts commit 53ab208. * test(socketio/connect): fix ws message assertion * test: minor improvements * doc(socketio/connect): improve doc and code readability * feat(socketio/connect): emit extractor errors in middlewares * chore(bench/heaptrack): add middleware to bench * doc(socketio/connect): wip doc * doc(socketio/connect): wip doc * doc(socketio/connect): wip doc * test(socket): set connected for dummy socket * test(socket): add test for connect status * feat(socketio/connect): block emission if socket is not connected * feat(socketio/socket): disconnect status before calling `disconnect` handler. * doc(socketio/connect): document middlewares * chore(bench): remove middleware from bench * doc(socketio/connect): specify middleware behavior for `Data` extractor * doc(socketio/connect): specify middleware behavior for `Data` extractor
- Loading branch information
Showing
15 changed files
with
581 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.