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

Details

at line 19
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.

Called while Reverb handles a WebSocket operation. Report delivery failures instead of throwing them so the operation can complete, but let coroutine cancellation propagate.

Parameters

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

Return Value

void