Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add listenToAll and stopListeningToAll #315

Merged
merged 2 commits into from Jun 17, 2021
Merged

Add listenToAll and stopListeningToAll #315

merged 2 commits into from Jun 17, 2021

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Jun 17, 2021

Echo.channel('channel')
    .listenToAll((event, data) => {
        console.log(e);
    })

This will add a listener to all non pusher events (events that doesn't start with pusher:).

It'll remove the namespace from the event name, and adds a dot to the event name if it wasn't namespaced so people can expected the same format for event names as they'd use with listen().

@taylorotwell taylorotwell merged commit 39f8171 into master Jun 17, 2021
@taylorotwell taylorotwell deleted the pr25023 branch June 17, 2021 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants