GetEvent returns the event type of the SSE event.
()
| 228 | |
| 229 | // GetEvent returns the event type of the SSE event. |
| 230 | func (e *Event[T]) GetEvent() string { |
| 231 | return *e.event |
| 232 | } |
| 233 | |
| 234 | // GetData returns the data of the SSE event. |
| 235 | func (e *Event[T]) GetData() any { |