bug fix for secure websocket

This commit is contained in:
humgate
2024-06-04 20:17:10 +06:00
parent f1ba5e7a7e
commit b85815a8df
+1 -1
View File
@@ -11,7 +11,7 @@ import * as comfyapi from "./comfyapi.js";
// WebSocket
const server_address = window.location.hostname + ':' + window.location.port;
const socket = new WebSocket('ws://' + server_address + '/ws?clientId=' + client_id);
const socket = new WebSocket('wss://' + server_address + '/ws?clientId=' + client_id);
socket.addEventListener('open', (event) => {
console.log('Connected to the server');
});