VerifiedPubSub.Message (VerifiedPubSub v0.1.0)

Copy Markdown View Source

The struct that a subscriber receives for each verified broadcast.

params holds the param values that built the wire topic. A process can subscribe to one topic with many sets of params, and params tells the messages apart.

Summary

Types

t()

The fields of the message

Types

t()

@type t() :: %VerifiedPubSub.Message{
  event: atom(),
  manifest: module(),
  params: map(),
  payload: term(),
  topic: atom()
}

The fields of the message:

  • manifest: the manifest that declares the topic.
  • topic: the name of the topic.
  • event: the event.
  • params: the param values that built the wire topic.
  • payload: the payload.