Skip to content

Commit c910d3e

Browse files
authored
doc(socketio/connect): specify middleware behavior for Data extractor
1 parent c4dcfcf commit c910d3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

socketioxide/src/handler/extract.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
//! They can be used to extract data from the context of the handler and get specific params. Here are some examples of extractors:
66
//! * [`Data`]: extracts and deserialize to json any data, if a deserialization error occurs the handler won't be called:
77
//! - for [`ConnectHandler`](super::ConnectHandler): extracts and deserialize to json the auth data
8-
//! - for [`ConnectMiddleware`](super::ConnectMiddleware): extract and deserialize to json the auth data.
9-
//! In case of error, the middleware chain stops and a `connect_error` event is sent.
8+
//! - for [`ConnectMiddleware`](super::ConnectMiddleware): extract and deserialize to json the auth data.
9+
//! In case of error, the middleware chain stops and a `connect_error` event is sent.
1010
//! - for [`MessageHandler`](super::MessageHandler): extracts and deserialize to json the message data
1111
//! * [`TryData`]: extracts and deserialize to json any data but with a `Result` type in case of error:
12-
//! - for [`ConnectHandler`](super::ConnectHandler) and [`ConnectMiddleware`](super::ConnectMiddleware):
12+
//! - for [`ConnectHandler`](super::ConnectHandler) and [`ConnectMiddleware`](super::ConnectMiddleware):
1313
//! extracts and deserialize to json the auth data
1414
//! - for [`MessageHandler`](super::MessageHandler): extracts and deserialize to json the message data
1515
//! * [`SocketRef`]: extracts a reference to the [`Socket`]

0 commit comments

Comments
 (0)