phoenix.live_view.handle_event.stop
A Phoenix LiveView handled a client event such as phx-click.
Fields
12| Field | Type | Description |
|---|---|---|
event_type | string | Allowed value: phoenix.live_view.handle_event.stop. |
url | string | URL of the LiveView at the time of the event. |
socket_id | string | LiveView socket ID. |
view | string | LiveView module name. |
component | string | LiveComponent module name, if applicable. |
assigns | object | Socket assigns at the time of the event. |
assigns.* | any | Additional caller-defined keys. |
params | object | Params passed to the event handler. |
params.* | any | Additional caller-defined keys. |
event | string | Event name for handle_event events. |
duration | number | Duration in microseconds. |
request_id | string | Request ID generated at LiveView mount and shared by events on the same socket. |
Example
{ "event_type": "phoenix.live_view.handle_event.stop", "url": "https://www.example.com/users/42/edit", "socket_id": "phx-F8ZBOg1zcBQDqDgAAACB", "view": "MyAppWeb.UserLive.Show", "assigns": { "page_title": "Edit user", "current_user_id": 42 }, "params": { "user": { "name": "Jane Doe" } }, "event": "save", "duration": 28000, "request_id": "b3d5a1f0c2e4968a7d1b3f5c9e0a2d4f"}