Connection state and the use macro for an htmx WebSocket handler.
meta describes only the event currently being dispatched. It is reset to
%{} before the transport stores the returned socket. private belongs to
this library and application code must not modify it.
Summary
Functions
Merges a map or keyword list into the connection assigns.
Assigns one value for the life of this connection.
Updates an existing assign with a unary function.
Types
Callbacks
@callback handle_error(reason :: atom(), payload :: term(), socket :: t()) :: event_result()
@callback handle_event(event :: binary(), params :: map(), socket :: t()) :: event_result()
@callback handle_info(message :: term(), socket :: t()) :: info_result()
Functions
Merges a map or keyword list into the connection assigns.
Assigns one value for the life of this connection.
Updates an existing assign with a unary function.