server: widget caching error
This commit is contained in:
parent
3318e9a312
commit
5548c6b312
3 changed files with 13 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ class Socket extends EventEmitter {
|
|||
}, hearbeatTimeout)
|
||||
}, hearbeatInterval)
|
||||
|
||||
this.emit('created')
|
||||
|
||||
}
|
||||
|
||||
close() {
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ class Ipc extends EventEmitter {
|
|||
|
||||
}
|
||||
|
||||
this.clients[id].emit('created')
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue