implemented simple chat using websockets