12 lines
No EOL
377 B
Diff
12 lines
No EOL
377 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"
|
|
} else {
|
|
wsurl = localStorage.host;
|
|
};
|
|
this._ws = new WebSocket(wsurl,"pianoverse")
|