Skip to content

Commit

Permalink
added experiments and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Jul 11, 2019
1 parent e5a2f0a commit 4bd2ba4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/live.example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ async function login() {
await ig.live.unmuteComment(broadcast_id);
/**
* wait 2 seconds until the next request.
* in the real world you'd use something like setInterval() instead of setTimeout() / just to simulate a delay
* in the real world you'd use something like setInterval() instead of Bluebird.delay() / just to simulate a delay
*/
// wait 2s
await Bluebird.fromCallback(cb => setTimeout(cb, 2 * 1000));
await Bluebird.delay(2000);
// now, we print the next comments
lastCommentTs = await printComments(broadcast_id, lastCommentTs);

Expand Down
Loading

0 comments on commit 4bd2ba4

Please sign in to comment.