ExMCP.Client.ConnectionManager (ex_mcp v0.9.2)
View SourceConnection lifecycle management for ExMCP client.
This module handles all aspects of connection establishment, transport management, health checks, and message receiving for MCP clients.
Summary
Functions
Establishes connection using the provided options and updates client state.
Establishes connection with retry logic applied.
The message receiving loop.
Functions
Establishes connection using the provided options and updates client state.
Takes the current client state and connection options, establishes the connection, and returns the updated state with connection information.
Supports retry policies for connection establishment through the :retry_policy option.
Establishes connection with retry logic applied.
The message receiving loop.
This function is intended to be run in a separate process (e.g., a Task). It continuously receives messages from the transport and forwards them to the parent process.