laravel / reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.
https://reverb.laravel.com
MIT License
1.02k stars 71 forks source link

[1.x] Adds exists() method to ChannelManager #149

Closed AmirRezaM75 closed 4 months ago

AmirRezaM75 commented 4 months ago

I came across a situation in my project that needs to check if a channel exists or not. We can utilize find() method and check if the result is null or not; But since Reverb aims for performance, better to only check if key exists or not instead of loading object. It also gives freedom if someone wants to bind it's own DbChannelManager driver instead of array.