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

Overriding the broadcast event name #10236

Closed
EwanValentine opened this issue Sep 11, 2015 · 1 comment
Closed

Overriding the broadcast event name #10236

EwanValentine opened this issue Sep 11, 2015 · 1 comment

Comments

@EwanValentine
Copy link

Hi folks,

I'm using Pusher to broadcast events to a React front-end. It's working spot on, however we're exposing full class names in our JS in order to listen for that event. Is there anyway to override the event name from say App\Events\MySomethingEvent to app.myevent?

Cheers!

@EwanValentine
Copy link
Author

Apologies, just did some digging around and found broadcastAs(), couldn't find that in the docs though?

rap2hpoutre added a commit to rap2hpoutre/docs that referenced this issue Oct 9, 2015
I've just read this issue laravel/framework#10236 and realize that we could override the broadcast event name. Maybe it should be added to doc. 

P.S: I'm not english, sorry if it's unreadable.
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

No branches or pull requests

1 participant