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