GetRetry returns the retry interval of the SSE event.
()
| 243 | |
| 244 | // GetRetry returns the retry interval of the SSE event. |
| 245 | func (e *Event[T]) GetRetry() int { |
| 246 | return *e.retry |
| 247 | } |
| 248 | |
| 249 | type StreamHandler[Req any, Resp any] func(context.Context, Req, chan<- Resp) |
| 250 |