View Source Envio.Channels (envio v0.10.0)

Channels storage.

It manages all the channels currently existing in the system.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Default initialization callback (noop.)

Registers new channel.

Starts a new channels bucket.

Get list of active subscriptions.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Default initialization callback (noop.)

Link to this function

register(host, channels)

View Source

Specs

register(atom() | {atom(), atom()}, [{atom(), Envio.Channel.t()}]) ::
  :ok | {:error, {:already_registered, Envio.Channel.t()}}

Registers new channel.

Starts a new channels bucket.

Specs

state() :: Envio.State.t()

Get list of active subscriptions.