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

How to send and receive websocket message to Laravel Reverb ? #231

Open
krunaldodiya opened this issue Jun 27, 2024 · 1 comment
Open

How to send and receive websocket message to Laravel Reverb ? #231

krunaldodiya opened this issue Jun 27, 2024 · 1 comment

Comments

@krunaldodiya
Copy link

Hello thanks for great pusher library but I am stuck and not able to integrate with Laravel Reverb (Websocket server).

Can some one please help me with this ?

@dominikhosic
Copy link

Since Reverb runs on the same protocol as Pusher, it works seamlessly with this library. I just implemented it myself.

I set up an empty Laravel app on my server, installed Reverb following the Laravel documentation, launched the artisan reverb:start command, and initialized this library with my reverb credentials. I also used Forge to set it up, so it was quite straightforward. There’s even a tutorial for it on Youtube. If you do it manually there may be need for more manual configuration. For listening to events on the Laravel side I'm using the standard Echo.

Sorry for replying to an older issue. I just wanted to share my experience for anyone in the future who may be wondering whether this library actually works with Reverb.

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

2 participants