add new official server lobby

This commit is contained in:
Lamp 2023-10-06 15:22:52 -05:00
parent fe0c0bbe61
commit 48b7791ae3
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,11 @@
[ [
{ "room": "lobby", "channel": "1159943041692471488", "uri": "wss://game.multiplayerpiano.com:443" },
{ "room": "lobby", "channel": "339609383644168195", "uri": "wss://mppclone.com:8443" }, { "room": "lobby", "channel": "339609383644168195", "uri": "wss://mppclone.com:8443" },
{ "room": "lobby2", "channel": "350006891948277770", "uri": "wss://mppclone.com:8443" }, { "room": "lobby2", "channel": "350006891948277770", "uri": "wss://mppclone.com:8443" },
{ "room": "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧", "channel": "698736467559710740", "uri": "wss://mppclone.com:8443" }, { "room": "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧", "channel": "698736467559710740", "uri": "wss://mppclone.com:8443" },
{ "room": "test/awkward", "channel": "360556775860076544", "uri": "wss://mppclone.com:8443" }, { "room": "test/awkward", "channel": "360556775860076544", "uri": "wss://mppclone.com:8443" },
{ "room": "test/fishing", "channel": "339613702472859659", "uri": "wss://mppclone.com:8443" }, { "room": "test/fishing", "channel": "339613702472859659", "uri": "wss://mppclone.com:8443" },
{ "room": "lobby", "channel": "339904195719200768", "uri": "wss://piano.ourworldofpixels.com" }, { "room": "lobby", "channel": "339904195719200768", "uri": "wss://piano.ourworldofpixels.com" }
] ]

View File

@ -75,10 +75,9 @@ Client.prototype.connect = function() {
this.emit("status", "Connecting..."); this.emit("status", "Connecting...");
if(typeof module !== "undefined") { if(typeof module !== "undefined") {
// nodejsicle // nodejsicle
require('https').get('https://app_legacy.multiplayerpiano.com').on("error", () => {});
this.ws = new WebSocket(this.uri, { this.ws = new WebSocket(this.uri, {
headers: { headers: {
"origin": "https://multiplayerpiano.com", "origin": `https://${new URL(this.uri).host}`,
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
} }
}); });