aboutsummaryrefslogtreecommitdiff
path: root/socketConnection.js
diff options
context:
space:
mode:
Diffstat (limited to 'socketConnection.js')
-rw-r--r--socketConnection.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/socketConnection.js b/socketConnection.js
index 96f9ceb..1cac07e 100644
--- a/socketConnection.js
+++ b/socketConnection.js
@@ -12,6 +12,9 @@ class SoopyV2Server extends WebsiteCommunicator {
this.errorsToReport = []
+ this.lbdatathing = undefined
+ this.lbdatathingupdated = 0
+
this.reportErrorsSetting = undefined
this.onPlayerStatsLoaded = undefined
@@ -27,6 +30,10 @@ class SoopyV2Server extends WebsiteCommunicator {
if(data.type === "playerStatsQuick"){
if(this.onPlayerStatsLoaded) this.onPlayerStatsLoaded(data.data)
}
+ if(data.type === "updateLbDataThing"){
+ this.lbdatathing = data.data
+ this.lbdatathingupdated = data.lastUpdated
+ }
}
onConnect(){