mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 00:05:27 +02:00
Update:Socket event for getting online users & test event for messaging all online users
This commit is contained in:
parent
64a8a046c1
commit
77a86d92f4
2 changed files with 39 additions and 7 deletions
|
@ -330,6 +330,9 @@ export default {
|
|||
this.$toast.info(toast)
|
||||
}
|
||||
},
|
||||
adminMessageEvt(message) {
|
||||
this.$toast.info(message)
|
||||
},
|
||||
initializeSocket() {
|
||||
this.socket = this.$nuxtSocket({
|
||||
name: process.env.NODE_ENV === 'development' ? 'dev' : 'prod',
|
||||
|
@ -400,6 +403,8 @@ export default {
|
|||
this.socket.on('backup_applied', this.backupApplied)
|
||||
|
||||
this.socket.on('batch_quickmatch_complete', this.batchQuickMatchComplete)
|
||||
|
||||
this.socket.on('admin_message', this.adminMessageEvt)
|
||||
},
|
||||
showUpdateToast(versionData) {
|
||||
var ignoreVersion = localStorage.getItem('ignoreVersion')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue