-
Notifications
You must be signed in to change notification settings - Fork 70
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
provide backend laravel example #18
Comments
@mghase what is your problem exactly ? |
Same problem. I need a example. Not works. |
@danielpenya i have followed this tutorial https://www.youtube.com/watch?v=ORga8ZavCc8&list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 setting up laravel websocket and integrated with this plugin successfully , just remember when you want to authorise private channel you need to send the the access token from the app in the authorization header, if you faced any problem during setting up you can share your problem here , good luck |
I had to use another pusher library. With the suggested one I could not make it work either because of some ssl handshake exceptions. I have:
Note that I had to add a custom host and port to the library: Furthermore, something that is not very clear is the naming convention of the channel.
and to broadcast your event, use App/Events/MyEvent.php:
Notice to not put "private-" before the channel name in both cases in laravel, it get's removed by laravel. |
i tried to connect with laravel websocket but didnt work
The text was updated successfully, but these errors were encountered: