From 745a1d6e94936b593fb5d93070a6e3d7c6eca800 Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Fri, 9 Feb 2018 21:03:21 -0800 Subject: [PATCH] document websocket args --- sanic/server.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sanic/server.py b/sanic/server.py index 62193db5..15ae4708 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -544,6 +544,16 @@ def serve(host, port, request_handler, error_handler, before_start=None, :param protocol: subclass of asyncio protocol class :param request_class: Request class to use :param access_log: disable/enable access log + :param websocket_max_size: enforces the maximum size for + incoming messages in bytes. + :param websocket_max_queue: sets the maximum length of the queue + that holds incoming messages. + :param websocket_read_limit: sets the high-water limit of the buffer for + incoming bytes, the low-water limit is half + the high-water limit. + :param websocket_write_limit: sets the high-water limit of the buffer for + outgoing bytes, the low-water limit is a + quarter of the high-water limit. :param is_request_stream: disable/enable Request.stream :param router: Router object :return: Nothing