Grouping route
This commit is contained in:
@ -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.');
|
||||
|
Reference in New Issue
Block a user