WebSocket Server on node.js for Broadcasting JSON
(websocket_client / p5) -- {json / ws} --> (websocket_server / node / heroku) -- {json / ws} --> (websocket_client / p5)
output_json = input_json + {server_time, available_clients} Server Location: "ws://fathomless-brook-91328.herokuapp.com"
- launch ws_client_A
- launch ws_client_B
(demo-video) https://youtu.be/GFv-NpQKzsg
-
Processing Clients
- encupsulating communication components (ie. websocket, json etc) into a utility class
- asynchronous visualization for incoming json
- add Arduino communication in sample
- error handling when the server is down
-
Other Clients
- make a simple sample in other platforms (eg. touch-designer, html+js etc.)
-
WebSocket Server on Node
- html visualization
- sample json broadcasting when available-clients num == 1
2020-05-25 Takatoshi Yoshida