GetID returns the ID of the SSE event.
()
| 218 | |
| 219 | // GetID returns the ID of the SSE event. |
| 220 | func (e *Event[T]) GetID() string { |
| 221 | return *e.id |
| 222 | } |
| 223 | |
| 224 | // HasEvent returns true if the SSE event has an event type. |
| 225 | func (e *Event[T]) HasEvent() bool { |