a very simple chat demo using websocket