pcho0712 / node-p5-websocket-communication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-p5-websocket-communication

WebSocket Server on node.js for Broadcasting JSON

architecture

(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"

usage-200525

  1. launch ws_client_A
  2. launch ws_client_B

(demo-video) https://youtu.be/GFv-NpQKzsg

remaining tasks

  • 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

misc

2020-05-25 Takatoshi Yoshida

About


Languages

Language:Processing 80.2%Language:JavaScript 11.2%Language:HTML 8.6%