The browser and a board through the bridge

A browser cannot open a UDP socket; tools/ws-bridge.js in web.o.se carries datagrams to a tab as WebSocket frames and frames back out as datagrams, byte for byte, one tab at a time.

node tools/ws-bridge.js                          # udp 9999 in, ws 8080 out
node tools/ws-bridge.js --to 192.168.1.101:8889  # and frames back, to there
node tools/ws-bridge.js --udp 9999 --ws 8080 --to <host:port>

Put ws://localhost:8080 in the page’s socket field and press Connect. A board that ships a raised machine to the bridge’s UDP port has it opened in the playground as a tree; edited and sent back, it goes to --to as one datagram. From the command line, with the bridge running, ("127.0.0.1:9999") /continue/at at the prompt moves a program into the tab the same way.


Examples · Between hosts