« get me outta code hell

announce joining party - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/backend.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-23 11:59:59 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-16 22:00:46 -0300
commit8a44b3c4088a1d3a6720f1d9c47627d50d5ef39c (patch)
treecbb6ff07575b7d65390e817e53118718f01c6b0a /backend.js
parentb64d923daa2aad9ca848dd8ff57c016a51ac5383 (diff)
announce joining party
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend.js b/backend.js
index 817ce1d..dea4429 100644
--- a/backend.js
+++ b/backend.js
@@ -701,6 +701,8 @@ export default class Backend extends EventEmitter {
     this.alwaysStartPaused = false
     this.waitWhenDonePlaying = false
 
+    this.hasAnnouncedJoin = false
+
     this.recordStore = new RecordStore()
     this.throttleMetadata = throttlePromise(10)
     this.metadataDictionary = {}
@@ -889,6 +891,14 @@ export default class Backend extends EventEmitter {
     this.emit('log message', messageInfo)
   }
 
+  announceJoinParty() {
+    this.emit('announce join party')
+  }
+
+  setHasAnnouncedJoin(hasAnnouncedJoin) {
+    this.hasAnnouncedJoin = hasAnnouncedJoin
+  }
+
   loadPartyGrouplike(socketId, partyGrouplike) {
     this.emit('got party grouplike', socketId, partyGrouplike)
   }