adk_live_voice_registry (erlang_adk v0.7.0)

View Source

Race-safe node-local ownership registry for Live voice bridges.

A Live session may have many read-only subscribers, but only one process may own its bidirectional browser voice path. Claims are constant-time and are serialized only for admission; bridges for different sessions continue independently in their own lightweight processes. Both the session and the bridge are monitored so abnormal death cannot strand a lease.

Summary

Functions

child_spec(Options)

-spec child_spec(term()) -> supervisor:child_spec().

claim(Session, Bridge)

-spec claim(pid(), pid()) -> ok | {error, term()}.

code_change(OldVersion, State, Extra)

format_status(Status)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State)

init(_)

release(Session, Bridge)

-spec release(pid(), pid()) -> ok | {error, term()}.

start_link()

-spec start_link() -> gen_server:start_ret().

terminate(Reason, _)