fixed Message.WriteSSE example
This commit is contained in:
+3319
-3319
File diff suppressed because it is too large
Load Diff
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user