Intercept failed requests to refresh the access_token and create a new websocket connection.