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 20
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.

Parameters

Application $application
string $event
array $data
Connection|null $connection

Return Value

void

at line 87
protected array buildEventData(Application $application, string $event, array $data, Connection|null $connection)

Build the per-event data array matching the Pusher webhook spec.

Parameters

Application $application
string $event
array $data
Connection|null $connection

Return Value

array

at line 133
protected void enrichClientEventUserId(Application $application, array $eventData, Connection|null $connection)

Add the authenticated user ID for presence-channel client events.

Parameters

Application $application
array $eventData
Connection|null $connection

Return Value

void