XmtpElixirSdk.Events (xmtp_elixir_sdk v0.1.2)

Copy Markdown

Runtime-scoped event subscriptions and delivery.

Summary

Types

topic()

@type topic() ::
  {:conversations, String.t()}
  | {:conversation, String.t()}
  | {:messages, String.t()}
  | {:deleted_messages, String.t()}
  | {:preferences, String.t()}
  | {:consent, String.t()}

Functions

emit(runtime_or_subject, topic, event)

subscribe(runtime_or_subject, topic, subscriber \\ self())

unsubscribe(runtime_or_subject, topic, subscriber \\ self())