simple chat demo implemented use websocket