View Source Bonfire.Common.PubSub (Bonfire v0.9.11-social-beta.6)

Pub/sub helpers for subscribing and broadcasting to topics

Summary

Functions

Broadcast some data for realtime updates, for example to a feed or thread

Broadcast while attaching telemetry info. The receiving module must use Bonfire.Common.PubSub to correctly unwrap the Event

Subscribe to something for realtime updates, like a feed or thread

Functions

broadcast(topics, payload)

Broadcast some data for realtime updates, for example to a feed or thread

broadcast_with_telemetry(topic, message)

(macro)

Broadcast while attaching telemetry info. The receiving module must use Bonfire.Common.PubSub to correctly unwrap the Event

broadcast_with_telemetry(topic, message, source)

current_function(env)

subscribe(topics, socket)

Subscribe to something for realtime updates, like a feed or thread