mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-04 13:56:29 +01:00
UI updates
This commit is contained in:
1 parent
12a153d423
commit
abf140bd21
10 files changed
+142
-51
No files matched your search
@@ -46,6 +46,7 @@ class ServerSocket extends EventEmitter {
|
||||
this.socket.on('connect', this.onConnect.bind(this))
|
||||
this.socket.on('disconnect', this.onDisconnect.bind(this))
|
||||
this.socket.on('init', this.onInit.bind(this))
|
||||
this.socket.on('user_updated', this.onUserUpdated.bind(this))
|
||||
|
||||
this.socket.onAny((evt, args) => {
|
||||
console.log(`[SOCKET] ${this.socket.id}: ${evt} ${JSON.stringify(args)}`)
|
||||
@@ -78,6 +79,11 @@ class ServerSocket extends EventEmitter {
|
||||
}
|
||||
this.emit('initialized', true)
|
||||
}
|
||||
|
||||
onUserUpdated(data) {
|
||||
console.log('[SOCKET] User updated', data)
|
||||
this.emit('user_updated', data)
|
||||
}
|
||||
}
|
||||
|
||||
export default ({ app, store }, inject) => {
|
||||
|
||||
Reference in new issue
Block a user