From 385de55c92963e6ecc39c2c7eab9694ade985fa3 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 2 May 2023 10:40:16 -0300 Subject: [PATCH] fix(chatModal): change wss to ws in production environment WebSocket URL Probable fix to #232 --- src/frontend/src/modals/chatModal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/modals/chatModal/index.tsx b/src/frontend/src/modals/chatModal/index.tsx index 6494902df..854363712 100644 --- a/src/frontend/src/modals/chatModal/index.tsx +++ b/src/frontend/src/modals/chatModal/index.tsx @@ -59,7 +59,7 @@ export default function ChatModal({ const urlWs = process.env.NODE_ENV === "development" ? `ws://localhost:7860/chat/${flow.id}` - : `wss://${window.location.host}/chat/${flow.id}`; + : `ws://${window.location.host}/chat/${flow.id}`; const newWs = new WebSocket(urlWs); newWs.onopen = () => {