Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.1k stars 426 forks source link

Add support for text/event-stream #493

Open murrayju opened 4 years ago

murrayju commented 4 years ago

It would be great to have support for Server Sent Events (SSE). Such APIs respond with a content type of text/event-stream, which is a simple text format for the server to emit data to the client.

The biggest difference between this and other types of requests is that the response stays open indefinitely. I'd like to see the response data in its own tab (separate from other types of requests), which renders the data "live" as it is received. Probably requires some sort of disconnect action (could be just closing the tab).

A very basic use case would be to open such an event stream, then make some other requests that trigger some events. I'd like to see the responses from these requests in one tab, and any event data in another.

Huachao commented 4 years ago

@murrayju nice suggestion, I will add this to the backlog

vsnthdev commented 3 years ago

Is this featured added? It's been a year since it was opened... 🙄

kaneshir commented 3 years ago

yes please give an update on when this will be added as I have the same use case @murrayju is describing.

Med-H commented 2 years ago

any news on the event sourcing ?

Hermholtz commented 1 year ago

Oh I wanted it today so badly 😄

waltcow commented 1 year ago

need this feature

deybith commented 1 year ago

Hoping to have it soon

ferrerogg commented 3 months ago

Need this feature :)

Puliczek commented 1 month ago

I need that :)