channels v0.0.1 Channels.Monitor

This module establishes connection with the given config, monitors the connection, and provides new channels.

If the connection crashes all processes that requested a channel receive an exit signal with the reason given by the connection, and the monitor exits.

Summary

Functions

Returns the connection and stores the given pid to be notified in case of connection crash

Starts a new monitor

Types

Functions

get_conn(monitor, pid \\ self)

Specs

Returns the connection and stores the given pid to be notified in case of connection crash.

start_link(config, opts \\ [])

Starts a new monitor.

  • config - The configuration to be given to the adapter.
  • opts - GenServer options plus :adapter (got from config by default).