simple chat server and client using websockets