PhoenixGenApi.ChannelHelpers (PhoenixGenApi v2.7.0)

Copy Markdown View Source

Shared push-handling logic for GenApi WebSocket channels.

Inject into a channel with use PhoenixGenApi.ChannelHelpers. Provides common handle_info clauses for:

  • synchronous push results
  • streaming responses
  • async RPC call results

All three forward the payload to the client via the "gen_api_result" event.