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