WebsockexAdapter.ConnectionRegistry (WebsockexAdapter v0.1.1)
View SourceETS-based connection tracking without GenServer.
Summary
Functions
Cleanup dead connection by PID.
Deregister a connection by ID.
Get connection info by ID.
Initialize the connection registry ETS table.
Register a connection with monitoring.
Cleanup all connections and destroy table.
Functions
@spec cleanup_dead(pid()) :: :ok
Cleanup dead connection by PID.
@spec deregister(String.t()) :: :ok
Deregister a connection by ID.
Get connection info by ID.
@spec init() :: :ok
Initialize the connection registry ETS table.
Register a connection with monitoring.
@spec shutdown() :: :ok
Cleanup all connections and destroy table.