ReqSSE.Message (req_sse v0.1.1)

View Source

The message struct.

Fields:

  • :data - the payload of the message sent by the server.

  • :event - the type of the event, if specified by the server, otherwise will default to "message".

  • :id - the unique ID of the message, if specified by the server.

  • :retry - the reconnection time, if specified by the server.

Summary

Types

t()

The message struct.

Types

t()

@type t() :: %ReqSSE.Message{
  data: nil | binary(),
  event: binary(),
  id: nil | binary(),
  retry: nil | integer()
}

The message struct.