View Source Baby.Connection.Registry (Baby v0.32.0)

A process registry for Baby.Connection

For maximum utility, name should be of the form: {host, port} where host is an internet address tuple and port is an integer

Summary

Functions

Return a list of all named connections

Check if a named connection is active

Send a message to all registered connections

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Send a message to a named connection

Functions

Return a list of all named connections

Check if a named connection is active

Link to this function

broadcast(message, except \\ [])

View Source

Send a message to all registered connections

Can include a list of names or pids to exclude

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

register_name(conn_name, pid)

View Source
Link to this function

send(conn_name, message)

View Source

Send a message to a named connection

Link to this function

unregister_name(conn_name)

View Source