onehilltech / blueprint

solid framework for building APIs and backend services
125 stars 26 forks source link

Messaging service module #1

Closed hilljh82 closed 9 years ago

hilljh82 commented 9 years ago

The goal of this is to integrate into Blueprint.js a messaging module. The messaging module allows Blueprint.js framework and controllers to send messages that correspond to different events. The web application can then register for these events. The objects that register for the events will be called listeners.

The listeners will reside in:

/app/listeners

The way we will register the listeners is based on directory naming. The name of the directory in the listeners directory will be the event of interest. For example, the directory

/app/listeners/app.init 

corresponds to the app.init event.

Each JavaScript file in the event directory will contain a single listener that is to be registered with the messaging service.