websockets (2)

WebSocket very basic protocol debugging overview

1. Required toolsnetcatbrew install netcatnodejsbrew install nodewebsocket toolsnpm install websocket-upgradeChrome browse2. Starting netcat as "server" on localhost, port 8080$ nc -lcvv localhost 80803. Creating websocket using chrome developer consolevar ws = new WebSocket('ws://localhost:8080');ws.onconnect = function() { console.log('connected'); }ws.onclose = function()…