Open Glavin001 opened 10 years ago
Implement the Observer Pattern such that modules can observe notification events that are received from a user, such as Twilio SMS or Email.
For example:
var NotificationCenter = require("./notification-center"); // Listen for an Event, received SMS NotificationCenter.on("sms", function(event) { // Event occurred // Process SMS (Text message) // Potentially reply NotificationCenter.send(event.sender, ....); }); // Listen for an Event, received Email NotificationCenter.on("email", function(event) { // Event occurred // Process Email // Potentially reply NotificationCenter.send(event.sender, ....); });
Related to #10.
Implement the Observer Pattern such that modules can observe notification events that are received from a user, such as Twilio SMS or Email.
For example:
Related to #10.