listening to the websocket
parsing the message