Realtime connectivity question

I really enjoy playing around with the gateway, and I’m putting together my own UI.

I noticed that when I change one of my devices state on my custom UI, it immediately updates on the gateway UI.

I assumed this was updated through websockets or something similar, but I cant see any changes in the network tab. So I was wondering how that works and if I can steel that from you for my own UI :innocent:

Yes, that’s all done via websockets. You can check out the protocol here: https://iot.mozilla.org/wot/

In the actual UI code, things are handled here: https://github.com/mozilla-iot/gateway/blob/master/static/js/models/thing-model.js

thanks, that’s what I was looking for!