Update static/js/main.js
Browse files- static/js/main.js +1 -1
static/js/main.js
CHANGED
|
@@ -28,7 +28,7 @@ function adjustChatBodyHeight() {
|
|
| 28 |
function openChatBotWindow() {
|
| 29 |
let lastScrollHeight = chatBody.scrollHeight;
|
| 30 |
const uuid = generateUUID()
|
| 31 |
-
socket = new WebSocket(`
|
| 32 |
socket.onclose = (event) => console.log('WebSocket disconnected', event);
|
| 33 |
socket.onerror = (error) => {
|
| 34 |
alert('Something was wrong. Try again later.')
|
|
|
|
| 28 |
function openChatBotWindow() {
|
| 29 |
let lastScrollHeight = chatBody.scrollHeight;
|
| 30 |
const uuid = generateUUID()
|
| 31 |
+
socket = new WebSocket(`wss://brestok-javeaai.hf.space/ws/${uuid}`);
|
| 32 |
socket.onclose = (event) => console.log('WebSocket disconnected', event);
|
| 33 |
socket.onerror = (error) => {
|
| 34 |
alert('Something was wrong. Try again later.')
|