a simple chat using websockets