You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# vue-echo
2
2
Vue integration for the Laravel Echo library.
3
3
4
-
This Vue plugin injects a Laravel Echo instance into all of you vue instances, allowing for a simple channel subscription on each instance, or using Laravel Echo through `this.$echo`.
4
+
This Vue plugin injects a Laravel Echo instance into all of your vue instances, allowing for a simple channel subscription on each instance, or using Laravel Echo through `this.$echo`.
5
5
6
6
## Install
7
7
@@ -11,8 +11,8 @@ npm install vue-echo --save
11
11
12
12
## Usage
13
13
14
-
### Initialise
15
-
First you'll need to register the plugin and optionally initialise the Echo instance.
14
+
### Initialize
15
+
First you'll need to register the plugin and, optionally, initialize the Echo instance.
16
16
17
17
```js
18
18
importVueEchofrom'vue-echo';
@@ -36,7 +36,7 @@ Vue.use(VueEcho, {
36
36
```
37
37
38
38
### Using Echo
39
-
Once vue-echo is registered, every vue instance is able to to subscribe to channels and listen to events through the `this.$echo` property on the connection you specified earlier.
39
+
Once vue-echo is registered, every vue instance is able to subscribe to channels and listen to events through the `this.$echo` property on the connection you specified earlier.
40
40
41
41
```js
42
42
var vm =newVue({
@@ -68,12 +68,12 @@ var vm = new Vue({
68
68
69
69
#### Subscribing to channels
70
70
71
-
Laravel echo allows you to subscribe to; normal, private and presence channels.
71
+
Laravel Echo allows you to subscribe to: normal, private and presence channels.
72
72
73
-
In the example above we subscribed to a standard channel.
73
+
In the example above, we subscribed to a standard channel.
74
74
75
75
##### Private channel
76
-
If you would like to subscribe to private channel instead, prefix your channel name with `private:`
76
+
If you would like to subscribe to a private channel instead, prefix your channel name with `private:`
0 commit comments