Angular factory

sraDispatcher source

This class provides the functionality needed to communicate with the SIMRacingApps Server. Only one instance of this class should exist and that is controlled by keeping the singleton instance stored on the $rootScope. It is recommended that you gain access to the instance by injecting it into your directive instead of accessing it from the $rootScope.

It also provides some common functionality that all directives can use when it is injected to them.