API Reference live_state v0.5.0




LiveState is a library to manage application state for a non elixir hosted application. A LiveState application roughly follows the pattern of Event Driven Architecture. Rather than requests and reponses, in a LiveState application your client emits Events and receives changes to state (and possibly additional events). This allows your client code to concern itself only with how to render the appropriate state and dispatch the appropriate events.

To build a LiveState application, you'll first want to add a channel that implements this behaviour.

Represents a CustomEvent to be returned from a reply and dispatched on the client.