Not to start a religious war, but it seems to me that for IoT messaging the MQTT protocol is better suited and very popular. It has features such as persistent messages and last-will messages that can help with sensors that only periodically report values.
Where websockets are interesting is for web browsers to connect to an espruino and get real-time updates, i.e., the use-case that @JumJum seems to be after.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Not to start a religious war, but it seems to me that for IoT messaging the MQTT protocol is better suited and very popular. It has features such as persistent messages and last-will messages that can help with sensors that only periodically report values.
Where websockets are interesting is for web browsers to connect to an espruino and get real-time updates, i.e., the use-case that @JumJum seems to be after.