Now we use our application in two windows simultaneously:
Open your terminal/shell and type the following command:
gulp
Go to http://localhost:3000/, insert the name John Doe, and you will see the following result:
We can see that's just one user, so now let's open another connection with the same socket. Use a new window or another browser.
Go to http://localhost:3000/ and insert the name, Max Smith. You should see the following result on the right-hand panel:
Now we have two users. Let's start talking...
On the John Doe screen, type this message: Any Body there?
Check the Max Smith screen and you will see the message from John appear, as shown in the following image:
Go back to the John Doe screen and check the message and answer it, as we did in the following image: