Skip to content

Added support for Server Side events#181

Open
rosspatil wants to merge 1 commit intojmartin82:masterfrom
rosspatil:master
Open

Added support for Server Side events#181
rosspatil wants to merge 1 commit intojmartin82:masterfrom
rosspatil:master

Conversation

@rosspatil
Copy link
Copy Markdown
Contributor

@rosspatil rosspatil commented Jul 30, 2024

Fix: #180
This PR will add support for server side events in order to stream the data. It checks the content-type header and if the value is text/event-stream, it will start streaming the data.
For SSE, we need to pass the data in array format and the server will stream each object in 2 sec interval.

@rosspatil rosspatil marked this pull request as ready for review July 30, 2024 09:39
Signed-off-by: Roshan Patil <patilroshan443@gmail.com>
@rosspatil
Copy link
Copy Markdown
Contributor Author

hey @jmartin82 ,

What do you think about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Server Side Events

1 participant