Skip to content

Commit

Permalink
test(scaling-pubsub): add message handler in node
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed May 7, 2024
1 parent 9f1fe7f commit 7d409a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/scaling-pubsub/src/node/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ setTimeout(async () => {
}, 10_000);
}, 30_000);

node.handleIncomingMessage(async () => {});

node.subscribe('rosenet-news', (message) => {
console.info(
`Message received: ${message} (delay: ${(Date.now() - +message) / 1000}s)`,
Expand Down

0 comments on commit 7d409a3

Please sign in to comment.