Report completed notification and continuous totals
Report Completed Notification
When running a report, the synchronization messages will now contain partial totals information as the report runs. The user running the report will also always receive the final "completed" synchronization message regardless of subscription.
The completed message format is identical to the regular reportResultMerged message, and will be sent to all open WebSocket connections for the user login in the reportResult.runBy property. This is also true for scheduled report templates which run overnight.
Continuous Totals
As an update to our reports system, the totals information for assets is calculated during the report processing instead of as the final step. Because of this change, we can now send the totals information as it is processed with regular reportResultMerged progress messages. The progress messages are sent every five seconds while a report is running, and only if the progress indicator has changed.
Please note that if your code is waiting for the reportResult.totals array, you will probably be receiving multiple messages as the report is processed. If you only wish to display or react to the final totals information, please check that the reportResult.status property is set to completed.