A quick example of Node Express + ws
Websocket library to show the (x,y) position of all cursors connected to the
server.
The cursor that is bolded is your cursor. It will always appear above other cursors
Inspiration: https://ably.com/blog/web-app-websockets-nodejs
- Git clone this repo
cd live-cursors
npm install
npm start
- Open Multiple browser tabs/windows to http://localhost:3000/
- Move the mouse on all of them to see the live updating
A quick example of Node Express + ws
Websocket library to show an implementation of publish/subscribe, with dynamic
subscriptions.
- Git clone this repo
cd pub-sub
npm install
npm start
- Open Multiple browser tabs/windows to http://localhost:3000/
- Add and remove subscriptions