Skip to content

Feat:SSE format #85

@zhuyanhuazhuyanhua

Description

@zhuyanhuazhuyanhua

Is your feature request related to a problem? Please describe.

I found that the splitting of the current SSE message is based on string matching, with data as the start and done as the end

Describe the solution you'd like

I want to use /n for splitting different fields, like id and event; /n/n is split as different SSE messages .SSE messages are cached with loop to ensure reliable transmission

Additional context

I have implemented SSE and LRU in Tencent Rhino Bird trpc-cpp and researched SSE best practices in detail
https://github.com/trpc-group/trpc-cpp/issues/207
https://html.spec.whatwg.org/multipage/server-sent-events.html
https://github.com/trpc-group/trpc-cpp/pull/225
If you think it is necessary, I am willing to complete this task

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions