diff --git a/bridges.json b/bridges.json index b8ba00d..8b9c560 100644 --- a/bridges.json +++ b/bridges.json @@ -1,9 +1,11 @@ [ + { "room": "lobby", "channel": "1159943041692471488", "uri": "wss://game.multiplayerpiano.com:443" }, + { "room": "lobby", "channel": "339609383644168195", "uri": "wss://mppclone.com:8443" }, { "room": "lobby2", "channel": "350006891948277770", "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/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" } ] diff --git a/lib/Client.js b/lib/Client.js index a2942b7..176c038 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -75,10 +75,9 @@ Client.prototype.connect = function() { this.emit("status", "Connecting..."); if(typeof module !== "undefined") { // nodejsicle - require('https').get('https://app_legacy.multiplayerpiano.com').on("error", () => {}); this.ws = new WebSocket(this.uri, { 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" } });