chat sample using websocket