File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ npm install vue-socket.io --save
15
15
```
16
16
17
17
## Usage
18
- ##### Configration
18
+ #### Configration
19
19
Automaticly socket connect from url string
20
20
``` js
21
21
Vue .use (VueSocketio, ' http://socketserver.com:1923' );
@@ -32,7 +32,7 @@ import store from './yourstore'
32
32
Vue .use (VueSocketio, socketio (' http://socketserver.com:1923' ), store);
33
33
```
34
34
35
- ##### On Vuejs instance usage
35
+ #### On Vuejs instance usage
36
36
``` js
37
37
var vm = new Vue ({
38
38
sockets: {
@@ -52,7 +52,7 @@ var vm = new Vue({
52
52
})
53
53
```
54
54
55
- ##### Dynamic socket event listenlers
55
+ #### Dynamic socket event listenlers
56
56
Create new listenler
57
57
``` js
58
58
this .$options .sockets .event_name = (data ) => {
@@ -64,7 +64,7 @@ Remove exist listenler
64
64
delete this .$options .sockets .event_name ;
65
65
```
66
66
67
- ##### Vuex Store integration
67
+ #### Vuex Store integration
68
68
Example store, socket mutations always have "SOCKET_ " prefix
69
69
``` js
70
70
import Vue from ' vue'
You can’t perform that action at this time.
0 commit comments