MCPcopy Index your code
hub / github.com/go-spring/go-spring / HasEvent

Method HasEvent

stdlib/httpsvr/handler.go:225–227  ·  view source on GitHub ↗

HasEvent returns true if the SSE event has an event type.

()

Source from the content-addressed store, hash-verified

223
224// HasEvent returns true if the SSE event has an event type.
225func (e *Event[T]) HasEvent() bool {
226 return e.event != nil
227}
228
229// GetEvent returns the event type of the SSE event.
230func (e *Event[T]) GetEvent() string {

Callers 1

HandleStreamFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected