Skip to content

LocalLiveView connection with Phoenix Live View #423

@FKubisSWM

Description

@FKubisSWM

Right now LocalLiveView works only in fornt end part of the appliaction (in Browser).
We need a solution that connects the LocalLiveView with server part of the Phoenix application.
Technically we need:

  • a socket defined in the local live view app
  • a channel defined in the phoenix app
  • socket and channel should be connected
  • elixir in the browser (LocalLiveView) should be able to call a socket (with popcorn API) to send a message to channel

With above task the biggest difficulty will be appending all popcorn functionalities defined in .js files (popcorn.js popcorn_iframe.js) to app.js file created by esbuild during phoenix app build.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlocal-live-viewTesting whether Popcorn can be used with LiveView to prevent server round-trips.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions