AshDyan.Adapters.PhoenixChannel (AshDyan v0.1.0)

Copy Markdown View Source

A thin Phoenix Channel adapter for AshDyan.

AshDyan is not coupled to Phoenix; this is provided as a reference adapter. Handle an incoming "analyze" event with the request spec as the payload.

Example

def handle_in("analyze", payload, socket) do
  AshDyan.Adapters.PhoenixChannel.analyze(socket, payload)
end

Summary

Functions

Run an analysis from a channel payload and reply with the result.

Functions

analyze(socket, payload)

Run an analysis from a channel payload and reply with the result.

The socket's :user assign (if present) is used as the Ash actor, and :tenant (if present) as the tenant.