You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
Fix: fix proxy chat
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
$(document).ready(function() {
|
||||
const chatSocket = new WebSocket(`ws://${window.location.host}/chat`);
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||
const chatSocket = new WebSocket(`${protocol}//${window.location.host}${window.location.pathname}chat`);
|
||||
let chatMessageCount = 0;
|
||||
const chatMessages = $('#chat-chatbox');
|
||||
const chatMessagesCount = $('.chat-messages-count');
|
||||
|
||||
Reference in New Issue
Block a user