Glavin001 / Glavin001/SMMApp2

"Pull"/Receive Notifications

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
enhancement feature low priority
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Implement the [Observer Pattern](http://en.wikipedia.org/wiki/Observer_pattern) such that modules can observe notification events that are **received from a user**, such as Twilio SMS or Email.

For example:

``` javascript
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.