Last active
December 18, 2015 00:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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