In order to run:
- npm install
- npm run
- open the web dashboard on http://localhost:3333
It has 4 events on the socket.
FEMALE.LOAD
which loads the initial data for femalesFEMALE.SAVE
which will add a new female name to the listFEMALE.NEW
which will boardcast the new female name to all listenersCITY.LOAD
which loads the initial data for citiesCITY.SAVE
which will add a new city name to the listCITY.NEW
which will boardcast the new city name to all listeners
It initally send 5 city names and female names to the client on socket connection. And you can add items to the list after the connection is established. You can try to open multiple tabs to see hwo they all get updates as soon as there is a new item.