Avoid using a web service with WebSocket inside a loop | CAST Appmarq