HasRetry returns true if the SSE event has a retry interval.
()
| 238 | |
| 239 | // HasRetry returns true if the SSE event has a retry interval. |
| 240 | func (e *Event[T]) HasRetry() bool { |
| 241 | return e.retry != nil |
| 242 | } |
| 243 | |
| 244 | // GetRetry returns the retry interval of the SSE event. |
| 245 | func (e *Event[T]) GetRetry() int { |