Replies: 1 comment
-
Opened issue on laravel-websockets beyondcode/laravel-websockets#638 (comment) |
Beta Was this translation helpful? Give feedback.
-
Opened issue on laravel-websockets beyondcode/laravel-websockets#638 (comment) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In laravel broadcasting, i have reached some limits i couldn't exceed.
For example i want to broadcast to users whose age range from 20 - 25.
I can achieve it in a way i think could be done better than
In my client's side
I will have to subscribe to all channels from 'user.age.20' upto 'user.age.25'
Which i feel can be improved.
Above broadcast approach will complicate everything if i will have to broadcast to users based on 2 or more conditions
For example
I want to broadcast to users with
age range 20-25and users withgender=femaleUsing the above broadcast approach will make it more complex and the more the conditions the more the complexity.
Im thinking if there could be a chained method that accepts a callback of a subscribed user argument that returns boolean which indicates that the subscribed user can receive the broadcast or not.
For example
Could this be a considerable idea? @taylorotwell @themsaid @driesvints @lucasmichot
Beta Was this translation helpful? Give feedback.
All reactions