I am using below code to subscribe my connection API, but I am receiving below error. Getconnection() function used is called every 5 seconds.
getConnections() {