raxx v0.8.2 Raxx.ServerSentEvents.Event

Create and manipulate individual chunks that comply with the server sent events protocol.

Summary

Functions

Create a new event from data and additional options

Convert an Event struct to a binary chunk that can be sent over the streaming connection

Functions

new(data, opts \\ %{})

Specs

new(binary, %{optional(atom) => any}) :: %{optional(atom) => any}

Create a new event from data and additional options

to_chunk(map)

Convert an Event struct to a binary chunk that can be sent over the streaming connection.