Skip to content

Commit

Permalink
fix: comment for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
FGYFFFF committed Dec 7, 2023
1 parent c103a77 commit a15026b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func NewStream(c *app.RequestContext) *Stream {
}
}

// Publish push an event to client.
// Publish push an event to client. If error is returned, you need to stop 'publish'.
func (c *Stream) Publish(event *Event) error {
err := Encode(c.w, event)
if err != nil {
Expand Down

0 comments on commit a15026b

Please sign in to comment.