recipes
recipes copied to clipboard
♻️ Refactor(v3): Update SSE recipe to use Buffered Streaming
Is your feature request related to a problem?
This issue is related to the recently merged PR for fiber/v3 the main repo: fiber#3131.
This issue proposes to update the SSE recipe to take advantage of this new v3 feature.
Describe the solution you'd like
This issue is to track updating the call c.Status(fiber.StatusOK).Context().SetBodyStreamWriter(fasthttp.StreamWriter(...)) to instead use c.Status(fiber.StatusOK).SendStreamWriter(...).
We should also update the markdown tutorial as well for SSE.
Describe alternatives you've considered
N/A
Additional context
This update is from a v2->v3 change. It may be a good idea to use a separate migration branch for this change to later merge into master when v3 is officially released.