adk_live_gun_transport (erlang_adk v0.7.0)

View Source

Production Gemini Live WebSocket transport backed by Gun.

The origin and path are fixed, TLS peer/hostname verification is mandatory, WebSocket compression is disabled, Gun retries are disabled, and inbound flow is replenished only after adk_live_session reports consumption. Credentials are transferred after process start as an opaque broker reference. Outbound credit is released only by Gun's ws_send_frame_end event, after the underlying socket transport accepted the complete frame.

Summary

Functions

close(Handle, Reason)

-spec close(pid(), term()) -> ok.

code_change(OldVsn, State, Extra)

consumed(Handle, Count)

-spec consumed(pid(), pos_integer()) -> ok.

format_status(Status)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State)

init(HandoffRef)

open(Owner, Options)

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

send(Handle, Frame)

-spec send(pid(), binary()) -> {ok, reference()} | {error, term()}.

terminate(Reason, State)