fixed Message.WriteSSE example

This commit is contained in:
Gani Georgiev 2025-09-13 23:46:13 +03:00
parent 68ab174f69
commit 76a6b9834b
2 changed files with 3296 additions and 3296 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ type Message struct {
// For example, writing to a router.Event:
//
// m := Message{Name: "users/create", Data: []byte{...}}
// m.Write(e.Response, "yourEventId")
// m.WriteSSE(e.Response, "yourEventId")
// e.Flush()
func (m *Message) WriteSSE(w io.Writer, eventId string) error {
parts := [][]byte{