Skip to content

Commit

Permalink
Merge pull request #4855 from driesvints/echo-leave-one
Browse files Browse the repository at this point in the history
[5.7] Document Echo leaveOne method
  • Loading branch information
taylorotwell authored Dec 21, 2018
2 parents 67f7c7b + 35231e5 commit 2c6dfd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion broadcasting.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,11 @@ If you would like to listen for events on a private channel, use the `private` m
<a name="leaving-a-channel"></a>
### Leaving A Channel

To leave a channel, you may call the `leave` method on your Echo instance:
To leave a channel, you may call the `leaveChannel` method on your Echo instance:

Echo.leaveChannel('orders');

If you would like to leave a channel and also its associated private and presence channels, you may call the `leave` method:

Echo.leave('orders');

Expand Down

0 comments on commit 2c6dfd1

Please sign in to comment.