Skip to content

Commit

Permalink
Update sdk-js/src/examples/basic/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Philibin <[email protected]>
  • Loading branch information
jacobmischka and danphilibin authored May 17, 2023
1 parent aa8497c commit 78f056e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/examples/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2157,15 +2157,4 @@ const interval = new Interval({
},
})

interval.listen().then(() => {
setInterval(() => {
interval
.ping()
.then(() => {
console.log('Pong!')
})
.catch(err => {
console.error('Error in ping:', err)
})
}, 10_000)
})
interval.listen()

0 comments on commit 78f056e

Please sign in to comment.