OnFirstSSEMatch fires once on the first SSE chunk satisfying isMatch, then.
func OnFirstSSEMatch(
br *BufferedReader,
isMatch func(map[string]any) bool,
fire func()
)OnFirstSSEMatch fires once on the first SSE chunk satisfying isMatch, then detaches from br. Safe only when br is read by a single goroutine.
| Name | Type | Description |
|---|---|---|
br* | *BufferedReader | |
isMatch* | func(map[string]any |