tornado WebSocket example


WebSocket status :

The following table shows values by using WebSocket

No.idvalue
1 id 1 0
2 id 2 0
3 id 3 0
No.idvalue
4 id 4 0
5 id 5 0
6 id 6 0
No.idvalue
7 id 7 0
8 id 8 0
9 id 9 0

REST API examples

  1. Set the "id 1" value to 100
    • curl "http://hiroakis.com:8888/api?id=1&value=100"
  2. Set the "id 1" value to 300 ( The row No 1 will change to yellow )
    • curl "http://hiroakis.com:8888/api?id=1&value=300"
  3. Set The "id 1" value to 600 ( The row No 1 will change to red )
    • curl "http://hiroakis.com:8888/api?id=1&value=600"