diff --git a/src/examples/basic/index.ts b/src/examples/basic/index.ts index 9be25d5..87d0d79 100644 --- a/src/examples/basic/index.ts +++ b/src/examples/basic/index.ts @@ -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()