Skip to content

Commit 075741a

Browse files
Update README.md
1 parent e8dc48d commit 075741a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
EventListeners can easily go out of hand if not used with utmost care, walky-talky is a tiny JS library to create a message channel using Publish/Subscribe pattern.
99

10+
## Purpose
11+
If you ever want to create a channel where anyone can subscribe to the custom action types and associate a custom handler with it, Then based on some event it is published with the action type. The subscriber who had subscribed to this event will get notified and the handler which was associated with it while subscribing will be called with params.
12+
13+
This can also act as a communication bridge between two applications.
14+
15+
1016
## Installation
1117

1218
```
@@ -19,11 +25,6 @@ or
1925
npm install walky-talky --save
2026
```
2127

22-
## Purpose
23-
If you ever want to create a channel where anyone can subscribe to the custom action types and associate a custom handler with it, Then based on some event it is published with the action type. The subscriber who had subscribed to this event will get notified and the handler which was associated with it while subscribing will be called with params.
24-
25-
This can also act as a communication bridge between two applications.
26-
2728
## Usage
2829
```js
2930
// module.js

0 commit comments

Comments
 (0)