-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
GraphQL subscription with Laravel Reverb #2564
Comments
Could it be the case that previous versions of Laravel Reverb required an |
I don't know if older versions required an |
I personally do not use subscriptions, so I do not plan to work on this. Feel free to contribute. |
I faced the same issue and fixed it by reusing the pusher driver for the reverb connection. #2612 |
When a subscription request is received by Reverb, it throws the following error:
The error is caused by the payload data being an array instead of a string, which is expected by the subscribe method in the EventHandler class.
The payload that triggers the error looks like this:
The
authorized
Method in theEchoBroadcaster
Class should send an string for 'channel_data' instead an array.Steps to reproduce
Output/Logs
Laravel Exception
Lighthouse Version
6.36.3
The text was updated successfully, but these errors were encountered: