laravel / reverb

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

[1.x] Prevents exception when no auth token passed #94

Closed joedixon closed 5 months ago

joedixon commented 5 months ago

Resolves #89

Updated the verify method for private channels to accept a nullable auth token. Doing so means the ConnectionUnauthorized exception will be thrown and the correct error message sent across the WebSocket rather than throwing a TypeError and stopping the server.