broadcast() = #{topic => binary() | nil, event => binary() | nil, payload => term(), ebus_t => broadcast}
Defines a message sent from pubsub to channels and vice-versa. The message format requires the following keys:
topic: The binary topic or topic:subtopic` pair namespace,
for example `<<"messages">>, <<"messages:123">>.event: The binary event name, for example <<"ebus_join">>.payload: The message payload.| from_map/1 | |
| new/0 | Equivalent to new(nil). |
| new/1 | Equivalent to new(Topic, nil). |
| new/2 | Equivalent to new(Topic, Event, nil). |
| new/3 |
from_map(Map::map()) -> broadcast()
new() -> any()
Equivalent to new(nil).
new(Topic) -> any()
Equivalent to new(Topic, nil).
new(Topic, Event) -> any()
Equivalent to new(Topic, Event, nil).
new(Topic::binary() | nil, Event::binary() | nil, Payload::term()) -> broadcast()
Generated by EDoc