From b8cea1d5892e6cd20d211ad6c76094d91ba35c83 Mon Sep 17 00:00:00 2001 From: Metin Seylan Date: Sun, 18 Nov 2018 17:55:39 +0300 Subject: [PATCH] cat added --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea7ed4b..3488843 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- +

@@ -57,7 +57,7 @@ vuex.mutationPrefix|String |`null`|Optional|Prefix for emitting server side vuex #### 🌈 Component Level Usage -

if you want listen socket events from component side, you have to add `sockets` object in Vue component, and every function will start listen events, depends on object key

+

If you want to listen socket events from component side, you need to add `sockets` object in Vue component, and every function will start to listen events, depends on object key

``` javascript new Vue({ @@ -80,7 +80,7 @@ new Vue({ ##### Dynamic Listenlers -

if you need consuming events dynamically in runtime, you can use `subscribe` and `unsubscribe` methods in Vue component

+

If you need consuming events dynamically in runtime, you can use `subscribe` and `unsubscribe` methods in Vue component

``` javascript this.sockets.subscribe('EVENT_NAME', (data) => { @@ -113,3 +113,9 @@ export default new Vuex.Store({ } }) ``` + +

+ + + +

\ No newline at end of file