View Source AbsintheClient.WebSocket.Message (absinthe_client v0.1.1)

Message sent from the server to the client.

The message format requires the following keys:

  • :topic - The string topic.

  • :event- The string event name, for example "subscription:data".

  • :payload - The message payload.

  • :ref - A unique term defined by the user when pushing or nil if none was provided.

  • :push_ref - The unique ref when pushing.

Link to this section Summary

Link to this section Types

@type t() :: %AbsintheClient.WebSocket.Message{
  event: term(),
  payload: term(),
  push_ref: term(),
  ref: term(),
  topic: term()
}