From 57a26473aaa2a4eae871a2a78914d48d164c478c Mon Sep 17 00:00:00 2001 From: David Reed Date: Fri, 18 Nov 2022 21:19:35 -0500 Subject: [PATCH] simply ignore the protocol --- src/uv.handler.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/uv.handler.js b/src/uv.handler.js index 1b86236..d8d1792 100644 --- a/src/uv.handler.js +++ b/src/uv.handler.js @@ -1017,14 +1017,6 @@ function __uvHook(window, config = {}, bare = '/bare/') { requestHeaders['Origin'] = __uv.meta.url.origin; requestHeaders['User-Agent'] = navigator.userAgent; - for (let proto of [].concat(protocol)) { - if (!validProtocol(proto)) { - throw new DOMException( - `Failed to construct 'WebSocket': The subprotocol '${proto}' is invalid.` - ); - } - } - if (__uv.cookieStr !== '') requestHeaders['Cookie'] = __uv.cookieStr.toString();