A simple chat example using websocket