HasID returns true if the SSE event has an ID.
()
| 213 | |
| 214 | // HasID returns true if the SSE event has an ID. |
| 215 | func (e *Event[T]) HasID() bool { |
| 216 | return e.id != nil |
| 217 | } |
| 218 | |
| 219 | // GetID returns the ID of the SSE event. |
| 220 | func (e *Event[T]) GetID() string { |