- Run
npm installfrom inside the client directory, followed bynpm start. - Run
npm installfrom inside the server directory, followed bynpm start.
- Open up
http://localhost:7000, then fill in your name and pressStart. - Open another tab at the address
http://localhost:7000/agent, then clickSend greetto session you created in step 1. - Open another tab at
http://localhost:7000, but this time enter a different name (only required for proof), then clickStart. - Go to the agent tab and refresh the page.
- You should see another session has been created. Send a greeting to the new session, and notice that the first tab doesn't receive the alert.
None of this code is production ready, and has been created for demonstrative purposes only.