Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 891 Bytes

File metadata and controls

23 lines (17 loc) · 891 Bytes

Socket.io Demo

demo

Socket.io Demo for my talk at the jSTL meetup on March 28, 2018

Prerequisites

Node.js (and npm).

Installation

  1. git clone https://github.com/andywise/socket.io-demo.git
  2. cd socket.io-demo
  3. npm i

How to use

  1. npm start
  2. Open localhost:3000 in a browser for the "screen."
  3. Open localhost:3000/r in a browser for the "remote."
  4. In each window open the javascript console.
  5. On the Remote page, click "send" to see "hello screen!" in the Screen page's console log.
  6. On the Remote page, click "color!" to change the Screen page's background color.
  7. On the Screen page, click "thanks!" to see "[screen id] says thanks" in the Remote page's console log.