pianoverse_client/build/ws.patch

12 lines
377 B
Diff
Raw Normal View History

2024-11-25 15:25:15 +00:00
this._ws=new WebSocket("wss://pianoverse.net","pianoverse")
let wsurl="";
if(!localStorage.host) {
wsurl = "wss://api.pianoverse.me";
} else if(localStorage.host=="mainline") {
wsurl = "wss://pianoverse.net"
} else if(localStorage.host == "dev") {
wsurl = "ws://127.0.0.1:8081"
2024-11-25 18:38:46 +00:00
} else {
wsurl = localStorage.host;
2024-11-25 15:25:15 +00:00
};
this._ws = new WebSocket(wsurl,"pianoverse")