From f90bf81d6cc8aa0e16cfee9bd95ca54abd0e8e02 Mon Sep 17 00:00:00 2001 From: Jakub Stawowy Date: Fri, 7 Oct 2022 12:11:31 +0200 Subject: [PATCH] =?UTF-8?q?Removed=20deprecated=20=E2=80=94ws-protocols=20?= =?UTF-8?q?option.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.txt | 2 ++ daphne/cli.py | 8 -------- daphne/server.py | 2 -- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9416110..eb2c58a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -39,6 +39,8 @@ This is a beta release to allow testing compatibility with the upcoming Channels ... ] +* Removed deprecated ``--ws_protocols`` CLI option. + 3.0.2 (2021-04-07) ------------------ diff --git a/daphne/cli.py b/daphne/cli.py index accafe1..7c0c3c9 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -113,13 +113,6 @@ class CommandLineInterface: help="The number of seconds an ASGI application has to exit after client disconnect before it is killed", default=10, ) - self.parser.add_argument( - "--ws-protocol", - nargs="*", - dest="ws_protocols", - help="The WebSocket protocols you wish to support", - default=None, - ) self.parser.add_argument( "--root-path", dest="root_path", @@ -280,7 +273,6 @@ class CommandLineInterface: action_logger=AccessLogGenerator(access_log_stream) if access_log_stream else None, - ws_protocols=args.ws_protocols, root_path=args.root_path, verbosity=args.verbosity, proxy_forwarded_address_header=self._get_forwarded_host(args=args), diff --git a/daphne/server.py b/daphne/server.py index e5728b3..8da4a61 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -65,8 +65,6 @@ class Server: application_close_timeout=10, ready_callable=None, server_name="daphne", - # Deprecated and does not work, remove in version 2.2 - ws_protocols=None, ): self.application = application self.endpoints = endpoints or []