From 075741ad607db38492438d6b9acdaaea671871e1 Mon Sep 17 00:00:00 2001 From: Kamlesh Chandnani Date: Tue, 9 Jan 2018 14:40:19 +0530 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a5dff8a..a2ac36e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ 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. +## Purpose +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. + +This can also act as a communication bridge between two applications. + + ## Installation ``` @@ -19,11 +25,6 @@ or npm install walky-talky --save ``` -## Purpose -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. - -This can also act as a communication bridge between two applications. - ## Usage ```js // module.js