@foxsys-xyz/fsuipc-api
v0.1.8
Published
<br/>
Downloads
4
Readme
foxsys-xyz \ fsuipc-api
an fsuipc api to track simulator events via x-track which works on node. based on @fsuipc/api 🔗
installation
$ yarn add @foxsys-xyz/fsuipc-api
complete example
import { FsuipcApi } from '@fsuipc/api';
const fsuipcApi = new FsuipcApi(Simulator.FSX);
fsuipcApi.init().then(() => {
fsuipcApi.listen(1000, [
'gs',
'altitude',
'comFreq',
'lights',
]).subscribe((result) => {
// Use the result here
console.log(JSON.stringify(result));
});
}).catch((e) =>
console.error(e)
);