October 2018
Intermediate to advanced
982 pages
23h 29m
English
By hooking up a username with a WebSocket ID, let's see how all this runs. Restart everything, and visit the site.
First, we login as shown in this screenshot:

As seen in the last screenshot, the user logs in as greg. After that, the chat box will display itself at the bottom of the page. If we assume that oliver and phil have also logged in, we can see an exchange of messages as follows:
Greg asks how everyone likes the cover:

This preceding message is seen by everyone. Again, no reason to display all three users' ...
Read now
Unlock full access