-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Labels
area:loaderRelated to app and resource loadingRelated to app and resource loadingenhancementNew feature or improvementNew feature or improvementproposalIdea in research phaseIdea in research phaseroadmapPriority issues that will be released in the short termPriority issues that will be released in the short term
Description
Allow users to pass https://hexdocs.pm/phoenix_live_view/js-interop.html#client-hooks-via-phx-hook to the Beacon livesocket.
The socket is initialized at
Line 31 in 4dd3b55
| let liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, { params: { _csrf_token: csrfToken } }) |
LiveView object from the host app and connects to the same socket path. It's important to reuse the same JS client version to avoid misbehavior.
Ideally the hook code should be stored in the DB and changed at runtime in the admin interface but that imposes some challenges on how to inject the js hook code into the socket.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:loaderRelated to app and resource loadingRelated to app and resource loadingenhancementNew feature or improvementNew feature or improvementproposalIdea in research phaseIdea in research phaseroadmapPriority issues that will be released in the short termPriority issues that will be released in the short term
Type
Projects
Status
Backlog