FIX.Session (fix_session v0.1.2)

Copy Markdown View Source

Initiator-side FIX session state machine.

FIX.Session.Protocol makes deterministic protocol decisions. This module owns runtime effects: transport, persistence, timers, and application delivery.

Summary

Functions

child_spec(config)

@spec child_spec(FIX.Session.Config.t()) :: Supervisor.child_spec()

logout(session, text \\ nil)

@spec logout(:gen_statem.server_ref(), binary() | nil) :: :ok | {:error, term()}

send_message(session, message)

@spec send_message(:gen_statem.server_ref(), FIX.Message.t()) ::
  :ok | {:error, term()}

start_link(config, options \\ [])

@spec start_link(
  FIX.Session.Config.t(),
  keyword()
) :: :gen_statem.start_ret()