iracing
v0.0.4
Published
Bindings to the iRacing SDK
Downloads
6
Readme
iRacing Bindings for Node
This is a native C++ library that binds the iRacing SDK to NodeJS so that you can access it from Javascript.
This project is new and currently under heavy development.
Example Usage
var iRacing = require('iracing').iRacing;
var ir = new iRacing();
console.log("Waiting for connection...");
var cd;
while (true) {
if (ir.waitForDataReady(60)) {
console.log("Connection established");
cd = ir.getCarAndDriver();
console.log(cd.driverName + " is racing on " + ir.getTrack());
break;
}
}