From caee853da7e7b839be39b9a32b9ff54fb6b61932 Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Thu, 7 Apr 2016 10:12:50 -0500 Subject: [PATCH] add --ws-protocols to cli arguments --- daphne/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/daphne/cli.py b/daphne/cli.py index 8763c87..708f7f4 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -70,6 +70,13 @@ class CommandLineInterface(object): 'channel_layer', help='The ASGI channel layer instance to use as path.to.module:instance.path', ) + self.parser.add_argument( + '--ws-protocol', + nargs='*', + dest='ws_protocols', + help='The WebSocket protocols you wish to support', + default=None, + ) @classmethod def entrypoint(cls): @@ -123,4 +130,5 @@ class CommandLineInterface(object): http_timeout=args.http_timeout, ping_interval=args.ping_interval, action_logger=AccessLogGenerator(access_log_stream) if access_log_stream else None, + ws_protocols=args.ws_protocols, ).run()