Socket.io Demo for my talk at the jSTL meetup on March 28, 2018
git clone https://github.com/andywise/socket.io-demo.git
cd socket.io-demo
npm i
npm start
- Open
localhost:3000
in a browser for the "screen." - Open
localhost:3000/r
in a browser for the "remote." - In each window open the javascript console.
- On the Remote page, click "send" to see "hello screen!" in the Screen page's console log.
- On the Remote page, click "color!" to change the Screen page's background color.
- On the Screen page, click "thanks!" to see "[screen id] says thanks" in the Remote page's console log.