Recently I discovered the web socket capabilities of the Tomcat web container. I read a gist by chitan. This was a nice start, but not a complete solution. Some changes were made to the tomcat classes and I don’t really like the one class to contain everything structure. Therefore I set out to create my own solution. The sample is the most basic chat client that you can create. When loading the page a socket connection is opened. When closing the page the socket connection is closed. The client makes use of standard html5 browser support.