Skip to content

Commit

Permalink
document that this is native-only
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Oct 10, 2024
1 parent bf27223 commit 19ad569
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ewebsock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,17 @@ pub struct Options {
/// Ignored on Web.
pub max_incoming_frame_size: usize,

/// Additional Request headers
/// Additional Request headers.
///
/// Currently only supported on native.
pub additional_headers: Vec<(String, String)>,

/// Additional subprotocols -
/// Additional subprotocols.
///
/// <https://www.iana.org/assignments/websocket/websocket.xml>
/// <https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#miscellaneous>
///
/// Currently only supported on native.
pub subprotocols: Vec<String>,

/// Delay blocking in ms - default 10ms
Expand Down

0 comments on commit 19ad569

Please sign in to comment.