A sample Java web-sockets implementation