diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index e9730e8..c095a4a 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -53,7 +53,9 @@ pub struct WebSocketConfig { /// If set to true it will allow the websocket server to accept unmasked frames from client. /// Even though this behaviour is not in compliance with RFC 6455 (which requires the server /// to close the connection when unmasked frame from client is received) it might be handy in some cases - /// as there are existing applications sending unmasked client frames. + /// as there are existing applications sending unmasked client frames. By default (i.e. unless not explicitly specified) + /// this flag is set to false which means violation of RFC 6455 is not allowed and unmasked client frames will be rejected + ///by websocket server. pub server_allow_unmasked: bool, }