Skip to content
Browse files

[minor] fast emission (100 / second) example

  • Loading branch information...
1 parent eeacf6c commit 3dbc43527698011db867fee37b48cf468779ae41 @ecto committed Feb 21, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 examples/fastPing.js
View
11 examples/fastPing.js
@@ -0,0 +1,11 @@
+var Nucleus = require('../');
+var nucleus = new Nucleus();
+
+setInterval(function () {
+ nucleus.emit('ping', { foo: 'bar' });
+}, 10);
+
+nucleus.on('pong', function (data) {
+ console.log('pong received: ' + data);
+});
+

0 comments on commit 3dbc435

Please sign in to comment.
Something went wrong with that request. Please try again.