Skip to content

Commit

Permalink
Fix readme examples in api package
Browse files Browse the repository at this point in the history
  • Loading branch information
carl0shd committed Feb 5, 2024
1 parent 382c925 commit a44d9cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-colts-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@simconnect.js/api': patch
---

Update README.md to fix some examples
4 changes: 2 additions & 2 deletions packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ simconnect.connect({
async function connect(handle, recvOpen) {
console.log(`Simulator connected`, recvOpen);

const [start, stop] = api.schedule(
const [start, stop] = simconnect.schedule(
(data) => {
console.log("data", data);
},
Expand Down Expand Up @@ -109,7 +109,7 @@ simconnect.connect({
retries: Infinity,
retryInterval: 5,
onConnect: () => {
api.on(SystemEvents.PAUSED, () => {
simconnect.on(SystemEvents.PAUSED, () => {
// ...
});
},
Expand Down

0 comments on commit a44d9cc

Please sign in to comment.