mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Fix URL
This commit is contained in:
parent
d241c94d46
commit
98c2f53a3a
@ -19,7 +19,7 @@ class UserWebSocket {
|
||||
const token = (await api("ws/token", null, true)).token;
|
||||
|
||||
// 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
|
||||
this.ws = new WebSocket(url);
|
||||
|
Loading…
Reference in New Issue
Block a user