Sử dụng Websocket -> tiến hành thay thế bằng giao thức: MQTT
Sơ lược: http://mcollina.github.io/mqtt_and_nodejs
Tạo MQTT broker trên nền tảng NodeJs bằng mosca
Hoặc trên các VPS hay chính máy cá nhân trong mạng LAN hoặc net, sử dụng mosquitto
Về mặt server coi như đã có các bước chuẩn bị...
Về phía client triển khai:
trên html page: tạo server với các rest apis (lưu tâm đến bảo mật)
http://www.eclipse.org/ponte/#api (1)
Ponte is a multi-transport Internet of Things / Machine to Machine broker. As the current state it supports MQTT and REST APIs over HTTP and CoAP.
trên app desktop (OK, it's easy), app mobile: trên http://linhkienbachkhoa.com/tutorials/esp8266-va-iot-part-2-esp8266-voi-mqtt/ có recommend: https://play.google.com/store/apps/details?id=at.tripwire.mqtt.client
trên tiện ích mở rộng của trình duyệt: MQTT lens (thực tế là giống (1))