From 78f056e7e03a9ab7af4942f863341a38734040c9 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Wed, 17 May 2023 13:43:22 -0500 Subject: [PATCH] Update sdk-js/src/examples/basic/index.ts Co-authored-by: Dan Philibin --- src/examples/basic/index.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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()