This commit is contained in:
Pierre HUBERT 2020-03-29 18:40:51 +02:00
parent d241c94d46
commit 98c2f53a3a

View File

@ -19,7 +19,7 @@ class UserWebSocket {
const token = (await api("ws/token", null, true)).token; const token = (await api("ws/token", null, true)).token;
// Determine websocket URL // Determine websocket URL
const url = ComunicWeb.__config.apiURL.replace("http", "ws") + "ws?key=" + token const url = ComunicWeb.__config.apiURL.replace("http", "ws") + "ws?token=" + token
// Connect to websocket // Connect to websocket
this.ws = new WebSocket(url); this.ws = new WebSocket(url);