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] Improves exception handling and logging #128

Closed joedixon closed 4 months ago

joedixon commented 4 months ago

This PR improves the exception handling and logging capabilities of Reverb by:

  1. Using the JSON_THROW_ON_ERROR flag when decoding payloads
  2. Logging exceptions before closing the connection with a 500 to provide visibility of the cause of the issue
  3. Logging broadcast messages
Screenshot 2024-04-04 at 10 17 10

This PR replaces #119