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

Customize broadcast queue and connection in config #295

Open
dhi2 opened this issue Feb 5, 2022 · 0 comments
Open

Customize broadcast queue and connection in config #295

dhi2 opened this issue Feb 5, 2022 · 0 comments

Comments

@dhi2
Copy link

dhi2 commented Feb 5, 2022

Created a pull request: #295

We need a custom queue and connection settings in the MessageWasSent file:
https://github.com/musonza/chat/blob/master/src/Eventing/MessageWasSent.php

(ref: https://laravel.com/docs/8.x/broadcasting#broadcast-queue)

This is because if I have the default QUEUE_CONNECTION=database in my .env then each time a message is sent it gets queued in the database, but I rather have it set to 'sync'.

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