DynamicSupervisor for VoiceEngine.Bridge processes.
Host apps call ensure_bridge/1 to start a bridge for a session,
passing all required opts (session_id, config, turn_fn, endpoint, pubsub).
Summary
Functions
Returns a specification to start this module under a supervisor.
Ensures a Bridge exists for the given session. Returns {:ok, pid}.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Ensures a Bridge exists for the given session. Returns {:ok, pid}.
Required opts:
:session_id:config—VoiceEngine.Configstruct:turn_fn—fn text -> {:ok, response} | {:error, reason}end:endpoint— Phoenix Endpoint module:pubsub— PubSub module