Pub/Sub API.
Authors: Alexander Færøy ([email protected]
).
send/2 | Send a message to a given topic. |
subscribe/1 | Subscribe to a given topic. |
send(Topic, Message) -> {pid(), Topic, Message}
Topic = term()
Message = term()
Send a message to a given topic.
subscribe(Topic) -> true
Topic = term()
Subscribe to a given topic.