10 lines
337 B
Diff
10 lines
337 B
Diff
|
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"
|
||
|
};
|
||
|
this._ws = new WebSocket(wsurl,"pianoverse")
|