Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 707 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 707 Bytes




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)
);