Grouping route

This commit is contained in:
2024-10-02 15:33:41 +07:00
parent 5d7dc70f1b
commit 93c44f40cc
41 changed files with 1176 additions and 1158 deletions

View File

@ -1,6 +1,6 @@
if (!window.mySocket) {
const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
window.mySocket = new WebSocket(`${wsProtocol}//${window.location.host}/user`);
window.mySocket = new WebSocket(`${wsProtocol}//${window.location.host}/ws`);
window.mySocket.onopen = function(event) {
console.log('WebSocket is open now.');