We are using your example code from https://github.com/thomsonreuters/websocket-api/blob/master/Applications/Examples/EDP/java/MarketPriceEdpGwAuthentication.java to consume Websocket Api , but we have noticed that application stops receiving rate update messages after aprox 9 minutes everytime, and then we have to restart application(above java example) and it again starts receiving update messages from Web Socket Api , mean time java application sends token refresh request and receives access token and keeps running for stipulated time frame .