Skip to content

v1.0.1

Choose a tag to compare

@thomas-osgood thomas-osgood released this 06 Jul 18:53
· 3 commits to main since this release
30def67

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"`
}

Associated Issues

#1 and #3