aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy_websocket.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/manual/cowboy_websocket.asciidoc')
-rw-r--r--doc/src/manual/cowboy_websocket.asciidoc8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/manual/cowboy_websocket.asciidoc b/doc/src/manual/cowboy_websocket.asciidoc
index 40864c5..5d686b1 100644
--- a/doc/src/manual/cowboy_websocket.asciidoc
+++ b/doc/src/manual/cowboy_websocket.asciidoc
@@ -153,6 +153,7 @@ Cowboy does it automatically for you.
opts() :: #{
compress => boolean(),
idle_timeout => timeout(),
+ max_frame_size => non_neg_integer() | infinity,
req_filter => fun((cowboy_req:req()) -> map())
}
----
@@ -181,6 +182,13 @@ idle_timeout (60000)::
connection open without receiving anything from
the client.
+max_frame_size (infinity)::
+ Maximum frame size allowed by this Websocket
+ handler. Cowboy will close the connection when
+ a client attempts to send a frame that goes over
+ this limit. For fragmented frames this applies
+ to the size of the reconstituted frame.
+
req_filter::
A function applied to the Req to compact it and
only keep required information. The Req is only