From 4f7dab5d7b150da3f7bc333ed6f2bb601c26f6af Mon Sep 17 00:00:00 2001 From: "Adam Bezecny (DHL IT Services)" Date: Mon, 30 Nov 2020 19:25:55 +0100 Subject: [PATCH] documentation for server_allow_unmasked improved --- src/protocol/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, }