Skip to content

Commit

Permalink
doc(socketio): improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore committed May 21, 2024
1 parent 1805c10 commit d5c01f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions socketioxide/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
//! to allow concurrent access. Moreover, any value extracted from the map is cloned before being returned.
//!
//! This is necessary because [`Extensions`] are shared between all the threads that handle the same socket.
//!
//! You can use the [`Extension`](crate::extract::Extension) or
//! [`MaybeExtension`](crate::extract::MaybeExtension) extractor to extract an extension of the given type.

use std::collections::HashMap;
use std::fmt;
Expand Down
1 change: 1 addition & 0 deletions socketioxide/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
//! Because the socket is not yet connected to the namespace,
//! you can't send messages to it from the middleware.
//! </div>
//!
//! See the [`handler::connect`](handler::connect#middleware) module doc for more details on middlewares and examples.
//!
//! ## [Emiting data](#emiting-data)
Expand Down

0 comments on commit d5c01f7

Please sign in to comment.