View Source Bonfire.Common.PubSub (Bonfire v0.9.10-classic-beta.169)

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

Link to this function

broadcast(topics, payload)

View Source

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

Link to this macro

broadcast_with_telemetry(topic, message)

View Source (macro)

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

Link to this function

broadcast_with_telemetry(topic, message, source)

View Source
Link to this function

subscribe(topics, socket)

View Source

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