Update:Socket event for getting online users & test event for messaging all online users

This commit is contained in:
advplyr 2022-11-24 13:51:41 -06:00
parent 64a8a046c1
commit 77a86d92f4
2 changed files with 39 additions and 7 deletions

View file

@ -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')