Skip to content

Commit 0c778d6

Browse files
author
metinseylan
committed
readme
1 parent 8e0100b commit 0c778d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install vue-socket.io --save
1515
```
1616

1717
## Usage
18-
##### Configration
18+
#### Configration
1919
Automaticly socket connect from url string
2020
``` js
2121
Vue.use(VueSocketio, 'http://socketserver.com:1923');
@@ -32,7 +32,7 @@ import store from './yourstore'
3232
Vue.use(VueSocketio, socketio('http://socketserver.com:1923'), store);
3333
```
3434

35-
##### On Vuejs instance usage
35+
#### On Vuejs instance usage
3636
``` js
3737
var vm = new Vue({
3838
sockets:{
@@ -52,7 +52,7 @@ var vm = new Vue({
5252
})
5353
```
5454

55-
##### Dynamic socket event listenlers
55+
#### Dynamic socket event listenlers
5656
Create new listenler
5757
``` js
5858
this.$options.sockets.event_name = (data) => {
@@ -64,7 +64,7 @@ Remove exist listenler
6464
delete this.$options.sockets.event_name;
6565
```
6666

67-
##### Vuex Store integration
67+
#### Vuex Store integration
6868
Example store, socket mutations always have "SOCKET_" prefix
6969
``` js
7070
import Vue from 'vue'

0 commit comments

Comments
 (0)