core: recreation of matchmaking, add: matchmaking support multiple modes

This commit is contained in:
2023-12-23 12:54:33 +01:00
parent 278e2cbe54
commit 6c39a13aca
8 changed files with 143 additions and 41 deletions

View File

@ -14,7 +14,7 @@ class Channel {
// reload = function to use when we receive a message
async connect(reload) {
let url = `ws://${window.location.host}/ws/chat/${this.channel_id}/`;
let url = `wss://${window.location.host}/ws/chat/${this.channel_id}/`;
this.chatSocket = new WebSocket(url);
this.chatSocket.onmessage = (event) =>{