From bf00c75f432ee63f0f7720730aafae86c3641116 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 22 Apr 2021 07:44:18 -0400 Subject: [PATCH] Specify supported protocols to be confluent.console Eventlet will return no supported protocols if none are specified. Firefox doesn't care, but chrome rejects such a reply. --- confluent_server/confluent/httpapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index bd7e9764..d2d746fa 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -381,7 +381,8 @@ def _assign_consessionid(consolesession): 'expiry': time.time() + 60} return sessid -@eventlet.websocket.WebSocketWSGI +@eventlet.websocket.WebSocketWSGI.configured( + supported_protocols=['confluent.console']) def wsock_handler(ws): sessid = ws.wait() sessid = sessid.replace('ConfluentSessionId:', '')