Created
March 25, 2018 19:04
-
-
Save WaleedAshraf/5592da82a6440c52bf373e5d23766bdf to your computer and use it in GitHub Desktop.
Switching from cluster module to PM2 & RabbitMQ
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
// exports RabbitMQ connection | |
const MQ = require('./rabbitmq-config'); | |
MQ.on('sms', function(data) { | |
sendSMS(data); // use twilio or something to send sms | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment