global reference to pr client

This commit is contained in:
Lamp 2019-06-27 17:16:30 -07:00
parent 3e7254ca87
commit 9c6cbed684
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ let client = new PRClient({// account stuff
password: "vWmnsEkgAPcU3VR",
roomName: 'lobby'
});
global.prClient = client;
client.connect();
client.socket.on("setRoom", function (data, callback) {
client.roomID = data.roomID;