HttpWebhookDispatcher
class HttpWebhookDispatcher implements WebhookDispatcher
Methods
void
dispatch(Application $application, string $event, array $data = [], Connection|null $connection = null)
Dispatch a webhook for the given event if the app has it configured.
array
buildEventData(Application $application, string $event, array $data, Connection|null $connection)
Build the per-event data array matching the Pusher webhook spec.
void
enrichClientEventUserId(Application $application, array $eventData, Connection|null $connection)
Add the authenticated user ID for presence-channel client events.
Details
at line 21
void
dispatch(Application $application, string $event, array $data = [], Connection|null $connection = null)
Dispatch a webhook for the given event if the app has it configured.
at line 97
protected array
buildEventData(Application $application, string $event, array $data, Connection|null $connection)
Build the per-event data array matching the Pusher webhook spec.
at line 143
protected void
enrichClientEventUserId(Application $application, array $eventData, Connection|null $connection)
Add the authenticated user ID for presence-channel client events.