Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Killavus committed Dec 10, 2015
1 parent 3bb50f2 commit 448b8fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ var callback = function() { console.log("Hello!"); };
EventBus.on("exampleEventName", function() { callback(); });
EventBus.publish("exampleEventName"); // Console output: `Hello!`
````

## More than one event bus:

To create more than one event bus, you can import the function constructor by itself:

````javascript
import EventStream from 'eventing-bus/lib/event_stream';

var bus = EventStream();
var anotherBus = new EventStream(); /* Both styles possible. */
````

0 comments on commit 448b8fb

Please sign in to comment.