serverChanged channel

This commit is contained in:
shortcutme 2017-11-05 23:37:53 +01:00
parent 754a3db1b9
commit b39d86d020
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -172,6 +172,9 @@ class UiWebsocket(object):
if len(params) > 1 and params[1]: # Extra data if len(params) > 1 and params[1]: # Extra data
site_info.update(params[1]) site_info.update(params[1])
self.cmd("setSiteInfo", site_info) self.cmd("setSiteInfo", site_info)
elif channel == "serverChanged":
server_info = self.formatServerInfo()
self.cmd("setServerInfo", server_info)
# Send response to client (to = message.id) # Send response to client (to = message.id)
def response(self, to, result): def response(self, to, result):