« get me outta code hell

identifier per socket connection - 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:44:58 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-04-23 11:44:58 -0300
commit533f2898871cc5c1a548308537fbcd4f8d4bbdf5 (patch)
tree68194e3ce3c8f14c928583709bda0bf3eef9efaf /backend.js
parent45f804fef3766e3183610b93ac3d1ffb89f08408 (diff)
identifier per socket connection
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend.js b/backend.js
index ddfb000..13287ec 100644
--- a/backend.js
+++ b/backend.js
@@ -859,16 +859,16 @@ class Backend extends EventEmitter {
     this.emit('log message', messageInfo)
   }
 
-  loadPartyGrouplike(partyGrouplike) {
-    this.emit('got party grouplike', partyGrouplike)
+  loadPartyGrouplike(socketId, partyGrouplike) {
+    this.emit('got party grouplike', socketId, partyGrouplike)
   }
 
   shareWithParty(item) {
     this.emit('share with party', item)
   }
 
-  partyGrouplikeUpdated(partyGrouplike) {
-    this.emit('party grouplike updated', partyGrouplike)
+  partyGrouplikeUpdated(socketId, partyGrouplike) {
+    this.emit('party grouplike updated', socketId, partyGrouplike)
   }
 }