RSSAmplifier

Mathias Polligkeit · Nov 1, 2024

Testing Client-Server Events in Phoenix LiveView

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

I needed to simulate events sent by a JavaScript hook to a LiveView. The hook was used to check browser support for passkeys and to only reveal the passkey registration button if support is confirmed. It would send an event to the server using the pushEventTo function, which was then handled by the handle_event callback.

Read on mathiaspolligkeit.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.