« 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 <towerofnix@gmail.com>2021-04-23 11:59:59 -0300
commit90186fa7759c1d4fa08b41fa69a87fb45782f000 (patch)
tree528e269c876e508783988f059695bcd6c5aea0e6 /backend.js
parent533f2898871cc5c1a548308537fbcd4f8d4bbdf5 (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 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)
   }