Removed deprecated —ws-protocols CLI option. (#387)

This commit is contained in:
Jakub Stawowy 2022-10-07 12:21:22 +02:00 committed by GitHub
parent 898529c489
commit fef1490eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -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) 3.0.2 (2021-04-07)
------------------ ------------------

View File

@ -113,13 +113,6 @@ class CommandLineInterface:
help="The number of seconds an ASGI application has to exit after client disconnect before it is killed", help="The number of seconds an ASGI application has to exit after client disconnect before it is killed",
default=10, 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( self.parser.add_argument(
"--root-path", "--root-path",
dest="root_path", dest="root_path",
@ -280,7 +273,6 @@ class CommandLineInterface:
action_logger=AccessLogGenerator(access_log_stream) action_logger=AccessLogGenerator(access_log_stream)
if access_log_stream if access_log_stream
else None, else None,
ws_protocols=args.ws_protocols,
root_path=args.root_path, root_path=args.root_path,
verbosity=args.verbosity, verbosity=args.verbosity,
proxy_forwarded_address_header=self._get_forwarded_host(args=args), proxy_forwarded_address_header=self._get_forwarded_host(args=args),

View File

@ -65,8 +65,6 @@ class Server:
application_close_timeout=10, application_close_timeout=10,
ready_callable=None, ready_callable=None,
server_name="daphne", server_name="daphne",
# Deprecated and does not work, remove in version 2.2
ws_protocols=None,
): ):
self.application = application self.application = application
self.endpoints = endpoints or [] self.endpoints = endpoints or []