1.0.9 • Published 8 years ago

mesh-tailable-bus v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

Creates a bus that can be tailed for all actions executed against it.

Installation: npm install mesh-tailable-bus

import TailableBus from 'mesh-tailable-bus';
var bus = TailableBus.create(NoopBus.create());
var tail = bus.createTail();

tail.pipeTo({
  write: function(action) {
    // handle tailed action - { action: "doSomething" }
  },
  close: function() { },
  abort: function() { }
});

// trigger tail
bus.execute({ action: "doSomething" });
1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago