The plugin subscribes to a few websockets, which the controller uses to push all changes to the plugin. Similar to what happens in the Unifi GUI. That will not only prevent a lot of unnecessary polling but also ensures changes are being updated in the plugin as soon as possible.
Downside is that I have to catch all the events (there are a lot of them!) and act on it accordingly. There could always be a change or something I forgot or something undocumented, but in reality it works quite well. I will do some testing with the client list to see if I can replicate and hopefully fix/enhance the experience. Restarting the plugin should not be necessary in my perfect world
Downside is that I have to catch all the events (there are a lot of them!) and act on it accordingly. There could always be a change or something I forgot or something undocumented, but in reality it works quite well. I will do some testing with the client list to see if I can replicate and hopefully fix/enhance the experience. Restarting the plugin should not be necessary in my perfect world
Comment