Message defines a client's channel data.
WriteSSE writes the current message in a SSE format into the provided writer.
For example, writing to a router.Event:
m := Message{Name: "users/create", Data: []byte{...}} m.Write(e.Response, "yourEventId") e.Flush() Copy
m := Message{Name: "users/create", Data: []byte{...}} m.Write(e.Response, "yourEventId") e.Flush()
Generated using TypeDoc
Message defines a client's channel data.