First page Back Continue Last page Graphics
The POST Reqest
- When the SIMRacingApps.js bootstraps the application, Angular’s controller and link methods are called on all directives, but the order us not known. In the link method the data listed in the attribute “data-sra-args-data” is subscribed to from the server using a Data object via a $http call.
- "data-sra-args-data" is a semi-colon separated list of paths to data you want to subscribe to. An example looks like "/Car/LEADER/Lap/Completed" or "/Car/LEADER/Lap/Completed;/Car/LEADER/Lap/CompletedPercent".
- SIMRacingApps.js establishes a "sessionid" that the server uses to cache the request. The session id will be used to poll the server for changes to the data subscribed to.