Repository navigation
v1.0.1
Overview
Added a new ID field to the SSEMessage struct and added JSON and XML tags to the SSEMessage fields.
SSEMessage
type SSEMessage struct {
// name of the event that will be transmitted.
Event string `json:"event" xml:"event"`
// id assigned to the event type. (optional)
Id string `json:"id" xml:"id"`
// data to be transmitted to the client.
//
// for best results, this should be a JSON object.
Data string `json:"data" xml:"data"`
}