View Source SSE.ConnectionRegistry (MCP SSE v0.1.2)

Manages the ETS table for SSE connections.

This module provides a centralized registry for Server-Sent Events (SSE) connections using an ETS table. It ensures the table is created when the application starts and provides access to the table name for other modules to interact with the connection data.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the table name used for storing SSE connections.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

table_name()

Returns the table name used for storing SSE connections.

The table name is used by other modules to interact with the ETS table that stores SSE connection information.

Returns

  • :sse_connections - The atom representing the ETS table name

Examples

iex> SSE.ConnectionRegistry.table_name()
:sse_connections