PhoenixKit.PubSub.Manager (phoenix_kit v1.6.16)

View Source

PubSub Manager for PhoenixKit admin live updates.

Manages its own PubSub system independent of parent applications. Automatically starts when needed and provides simple broadcast/subscribe API.

Summary

Functions

Broadcasts a message to a topic.

Returns a specification to start this module under a supervisor.

Starts the PubSub manager.

Subscribes to a topic.

Unsubscribes from a topic.

Functions

broadcast(topic, message)

Broadcasts a message to a topic.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

Starts the PubSub manager.

subscribe(topic)

Subscribes to a topic.

unsubscribe(topic)

Unsubscribes from a topic.