From 9c6cbed6844f08892f1e73ece45356770d0db3e1 Mon Sep 17 00:00:00 2001 From: Lamp Date: Thu, 27 Jun 2019 17:16:30 -0700 Subject: [PATCH] global reference to pr client --- src/prbridge/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prbridge/index.js b/src/prbridge/index.js index 8599187..16ae0bd 100644 --- a/src/prbridge/index.js +++ b/src/prbridge/index.js @@ -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;