Skip to content

♻️ Refactor(v3): Update SSE recipe to use Buffered Streaming #2709

@grivera64

Description

@grivera64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions