Created
November 11, 2015 15:46
-
-
Save mattpodwysocki/329a2aa76b133dc31dd2 to your computer and use it in GitHub Desktop.
This file contains 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
manager._emitter.on('peerAvailabilityChanged', function (peers) { | |
io.emit('peerAvailabilityChanged', peers); | |
}); | |
manager._emitter.on('networkChanged', function (isAvailable) { | |
io.emit('peerAvailabilityChanged', isAvailable); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment