server: widget caching error

This commit is contained in:
bordun 2020-11-19 12:14:04 +01:00
parent 3318e9a312
commit 5548c6b312
3 changed files with 13 additions and 4 deletions

View file

@ -23,10 +23,6 @@ module.exports = {
if (settings.read('load') && !data.hotReload) return this.sessionOpen({path: settings.read('load')}, clientId)
if (!widgetHashTable[clientId]) {
widgetHashTable[clientId] = {CONSOLE: {typeTags: ''}}
}
},
close(data, clientId) {
@ -34,6 +30,15 @@ module.exports = {
},
created(data, clientId) {
// client created or reconnected
if (!widgetHashTable[clientId]) {
widgetHashTable[clientId] = {CONSOLE: {typeTags: ''}}
}
},
destroyed(data, clientId) {
// client removed (timeout)