aboutsummaryrefslogtreecommitdiff
path: root/socketConnection.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-14 07:23:39 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-14 07:23:39 +0800
commit423bf216fb0547446f9853adb9505bfd4174bbd5 (patch)
tree87b264c7bef716d47308595304f0aca68c40c377 /socketConnection.js
parent133f781e0838445bca104490c8ffe0b6398a876e (diff)
downloadSoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.tar.gz
SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.tar.bz2
SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.zip
a?
Diffstat (limited to 'socketConnection.js')
-rw-r--r--socketConnection.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/socketConnection.js b/socketConnection.js
index 4e3fbda..27eafc0 100644
--- a/socketConnection.js
+++ b/socketConnection.js
@@ -7,7 +7,7 @@ class SoopyV2Server extends WebsiteCommunicator {
constructor(){
super(socketData.serverNameToId.soopyv2)
- this.spammedMessages = []
+ // this.spammedMessages = []
this.errorsToReport = []
@@ -29,9 +29,9 @@ class SoopyV2Server extends WebsiteCommunicator {
if(data.type === "updateCosmetics"){
if(global.soopyv2featuremanagerthing.features.cosmetics)global.soopyv2featuremanagerthing.features.cosmetics.class.setUserCosmeticsInformation(data.uuid, data.cosmetics)
}
- if(data.type === "spammedmessage"){
- this.spammedMessages.push(...data.messages)
- }
+ // if(data.type === "spammedmessage"){
+ // this.spammedMessages.push(...data.messages)
+ // }
if(data.type === "playerStatsQuick"){
if(this.onPlayerStatsLoaded) this.onPlayerStatsLoaded(data.data)
}
@@ -70,13 +70,13 @@ class SoopyV2Server extends WebsiteCommunicator {
})
}
- sendMessageToServer(message, lobbyId){
- this.sendData({
- type: "chatMessage",
- message: message,
- lobbyId: lobbyId
- })
- }
+ // sendMessageToServer(message, lobbyId){
+ // this.sendData({
+ // type: "chatMessage",
+ // message: message,
+ // lobbyId: lobbyId
+ // })
+ // }
reportError(error, description){
// ChatLib.chat(JSON.stringify(error))