diff --git a/packages/insomnia/src/main/network/websocket.ts b/packages/insomnia/src/main/network/websocket.ts index 2376ce206..4ddb1d511 100644 --- a/packages/insomnia/src/main/network/websocket.ts +++ b/packages/insomnia/src/main/network/websocket.ts @@ -220,7 +220,7 @@ const openWebSocketConnection = async ( 'on': true, 'global': settings.followRedirects, }[request.settingFollowRedirects] ?? true; - const protocols = lowerCasedEnabledHeaders['sec-websocket-protocol']; + const protocols = lowerCasedEnabledHeaders['sec-websocket-protocol']?.split(',').map(p => p.trim()); const ws = new WebSocket(url, protocols, { headers: lowerCasedEnabledHeaders, ca: caCertificate,