ReverbWatcher
class ReverbWatcher extends Watcher
Properties
| protected EntriesRepository|null | $entriesRepository | The entries repository. |
Methods
Record a Reverb event.
Extract entry content from the event.
Extract tags for the entry.
Truncate message content to the configured size limit.
Map config event names to Reverb event classes.
Default events to record.
Details
in
Watcher at line 16
__construct(array $options = [])
Create a new watcher instance.
at line 24
void
register(Application $app)
Register the watcher.
at line 54
protected void
recordReverbEvent(string $eventName, object $event)
Record a Reverb event.
Preserves outer recording state because Reverb events can fire inside an already-recording HTTP request or queue job coroutine (e.g. MessageSent during a broadcast triggered by EventsController). Only starts/stops recording when no outer context is active (pure WebSocket coroutines).
at line 82
protected array
extractEventData(string $eventName, object $event)
Extract entry content from the event.
at line 124
protected array
extractTags(object $event)
Extract tags for the entry.
at line 142
protected string
truncateMessage(string $message)
Truncate message content to the configured size limit.
at line 152
protected array
eventMap()
Map config event names to Reverb event classes.
at line 168
protected array
defaultEvents()
Default events to record.