Last active
November 3, 2018 10:53
-
-
Save UsamaAshraf/edb90f8e1a061f6eb8d1abe2db24f8ea 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
const myEmitter = require('./my_emitter'); | |
// Perform the registration steps | |
// Pass the new user object as the message passed through by this event. | |
myEmitter.emit('user-registered', user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment