Websockets in server mode

You can now use Websockets and disable flash for good. We added support for Websockets instead of Flash for direct real time connection to our sensors to retrieve real time data and payloads. Sensors can be configured in client mode or server mode. In client mode sensors and browsers both connect outbound as clients and get connected at the network level by our forwarder. Websockets have been working in this mode for quite sometime. Sensors can also be configured in server mode where the browser needs to connect to the sensor which acts as a websocket server.  Since sensors only have a self-signed SSL certificate, secure Websockets would not work. To get around this, we added a small web server (probably the smallest server you will ever see) that only serves a root certificate to be installed in your browser. Go to:

http://<yours sensor ip> for non-Windows systems

http://your sensor ip>:81 for Windows systems

and install the certificate.

Then configure your sensor as a server and make sure to add its static IP address in the sensor configuration. After restarting the sensor, you will be able to connect in server mode using Websockets.

Leave a Reply