Using a websocket client to access the Content Analysis REST API