File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
//! They can be used to extract data from the context of the handler and get specific params. Here are some examples of extractors:
6
6
//! * [`Data`]: extracts and deserialize to json any data, if a deserialization error occurs the handler won't be called:
7
7
//! - 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.
10
10
//! - for [`MessageHandler`](super::MessageHandler): extracts and deserialize to json the message data
11
11
//! * [`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):
13
13
//! extracts and deserialize to json the auth data
14
14
//! - for [`MessageHandler`](super::MessageHandler): extracts and deserialize to json the message data
15
15
//! * [`SocketRef`]: extracts a reference to the [`Socket`]
You can’t perform that action at this time.
0 commit comments