Proxy from WebSockets to TCP
npm install -g ws-to-tcp
# will proxy websockets from 8000
# to tcp sockets on 9000
ws-to-tcp --from 8000 --to 9000
need convert ArrayBuff to string data.
const a2s = require('arraybuffer-to-string')
ws.onmessage = e => console.log(a2s(e.data));
MIT