lib/pub-sub.js
function Topic(name, options, emitter) {
    this.name = name;
    this.subscribers = [];
    this.queue = [];
    this.publishedEvents = {};
    this.options = options || {};
    this.emitter = emitter;
}
function Topic(name, options, emitter) {
    this.name = name;
    this.subscribers = [];
    this.queue = [];
    this.publishedEvents = {};
    this.options = options || {};
    this.emitter = emitter;
}
Subscription topic