From 0c778d661f79b3f9dd46819dc590cab7420a49d8 Mon Sep 17 00:00:00 2001 From: metinseylan Date: Sat, 31 Dec 2016 01:21:01 +0300 Subject: [PATCH] readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 572d459..1f471ea 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ npm install vue-socket.io --save ``` ## Usage -##### Configration +#### Configration Automaticly socket connect from url string ``` js Vue.use(VueSocketio, 'http://socketserver.com:1923'); @@ -32,7 +32,7 @@ import store from './yourstore' Vue.use(VueSocketio, socketio('http://socketserver.com:1923'), store); ``` -##### On Vuejs instance usage +#### On Vuejs instance usage ``` js var vm = new Vue({ sockets:{ @@ -52,7 +52,7 @@ var vm = new Vue({ }) ``` -##### Dynamic socket event listenlers +#### Dynamic socket event listenlers Create new listenler ``` js this.$options.sockets.event_name = (data) => { @@ -64,7 +64,7 @@ Remove exist listenler delete this.$options.sockets.event_name; ``` -##### Vuex Store integration +#### Vuex Store integration Example store, socket mutations always have "SOCKET_" prefix ``` js import Vue from 'vue'