global reference to pr client
This commit is contained in:
parent
3e7254ca87
commit
9c6cbed684
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue