Attach result returned by the remote API broker.
Summary
Functions
Creates an attach result from session info and snapshot data.
Types
@type role() :: :driver | :viewer
@type t() :: %MingaAgent.RemoteAPI.AttachResult{ events: [MingaAgent.EventLog.EventRecord.t()], latest_event_id: non_neg_integer(), messages: [MingaAgent.Message.t()], metadata: MingaAgent.SessionMetadata.t(), pid: pid(), role: role(), session_id: String.t(), snapshot: MingaAgent.Session.editor_snapshot(), token: String.t() }
Functions
@spec new( MingaAgent.RemoteAPI.SessionInfo.t(), role(), [MingaAgent.Message.t()], MingaAgent.Session.editor_snapshot(), keyword() ) :: t()
Creates an attach result from session info and snapshot data.