You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.error('Invalid protocol. Supported protocols are http://, https://, ws://, and wss://.')
42
+
ifurlandnotargs.plugin_provided_url:
43
+
# Check and modify the URL protocol if necessary
44
+
ifurl.startswith('http://'):
45
+
returnurl.replace('http://', 'ws://', 1)
46
+
elifurl.startswith('https://'):
47
+
returnurl.replace('https://', 'wss://', 1)
48
+
elifnoturl.startswith(('ws://', 'wss://')):
49
+
parser.error('Invalid protocol. Supported protocols are http://, https://, ws://, and wss://.')
50
+
elifargs.plugin_provided_urlandnotargs.plugin:
51
+
parser.error('Please provide a WebSocket URL using either -u as a positional argument or use --plugin-provided-url if the WebSocket URL provided in a plugin')
0 commit comments