Skip to content

Instantly share code, notes, and snippets.

@Pent
Last active December 18, 2015 00:59
Show Gist options
  • Select an option

  • Save Pent/5700692 to your computer and use it in GitHub Desktop.

Select an option

Save Pent/5700692 to your computer and use it in GitHub Desktop.
Meteor IRC ping/pong function to prevent ping timeouts, client refers to the node-irc instance
client.addListener('PING', function() {
Fiber(function() {
client.send('PONG');
}).run();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment