« get me outta code hell

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:
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 13287ec..b225564 100644
--- a/backend.js
+++ b/backend.js
@@ -671,6 +671,8 @@ class Backend extends EventEmitter {
     this.alwaysStartPaused = false
     this.waitWhenDonePlaying = false
 
+    this.hasAnnouncedJoin = false
+
     this.recordStore = new RecordStore()
     this.throttleMetadata = throttlePromise(10)
     this.metadataDictionary = {}
@@ -859,6 +861,14 @@ 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)
   }