In light of my previous posts explaining a websocket based multi-player game, I thought I’d give an introduction to websockets in general and how I got to learn more about them. The best way to understand how websockets work is to create a simple chat application that allows people to chat with each other realtime. And this is exactly what I’m going to explain in this post.