Skip to content

Commit

Permalink
Word AppendData documentation better.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaxmax committed Jul 11, 2023
1 parent 252e02e commit eb740f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ func (e *Message) appendText(isComment bool, chunks ...string) {
}
}

// AppendData creates multiple data fields on the message's event from the given strings.
// AppendData adds multiple data fields on the message's event from the given strings.
// Each string will be a distinct data field, and if the strings themselves span multiple lines
// they will be broken into multiple fields.
//
// Server-sent events are not suited for binary data: the event fields are delimited by newlines,
// where a newline can be a LF, CR or CRLF sequence. When the client interprets the fields,
Expand Down

0 comments on commit eb740f5

Please sign in to comment.