Skip to content

Commit

Permalink
docs: fix syntax of dynamic socket listener
Browse files Browse the repository at this point in the history
  • Loading branch information
probil committed Aug 17, 2019
1 parent 6cba52b commit 0759e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ new Vue({

Create a new listener
``` js
this.$subscribe('event_name', payload => {
this.$socket.$subscribe('event_name', payload => {
console.log(payload)
});
```
Remove existing listener
``` js
this.$unsubscribe('even_name');
this.$socket.$unsubscribe('even_name');
```

#### Reactive properties (new in v4)
Expand Down

0 comments on commit 0759e34

Please sign in to comment.