MCPcopy
hub / github.com/gofiber/fiber / Event

Method Event

middleware/sse/sse.go:135–139  ·  view source on GitHub ↗

Event writes one SSE event and flushes it to the client.

(event Event)

Source from the content-addressed store, hash-verified

133
134// Event writes one SSE event and flushes it to the client.
135func (s *Stream) Event(event Event) error {
136 return s.write(func(w *bufio.Writer) error {
137 return writeEvent(w, event, s.jsonMarshal)
138 })
139}
140
141// Comment writes one SSE comment and flushes it to the client.
142func (s *Stream) Comment(comment string) error {

Calls 2

writeMethod · 0.95
writeEventFunction · 0.85