working with websocket response