fix(chatModal): change wss to ws in production environment WebSocket URL
Probable fix to #232
This commit is contained in:
parent
96ef8fd657
commit
385de55c92
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ export default function ChatModal({
|
||||||
const urlWs =
|
const urlWs =
|
||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
? `ws://localhost:7860/chat/${flow.id}`
|
? `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);
|
const newWs = new WebSocket(urlWs);
|
||||||
newWs.onopen = () => {
|
newWs.onopen = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue