How WebSockets Work?
See how to create a simple chat app using html JavaScript (WebSocket)
HTML page: https://gist.github.com/benixal/0c811...
Server.js:
https://gist.github.com/benixal/0c811...
00:00:27 Client Side
00:03:50 Server Side
00:23:46 Chat ! (final result)