vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Add support for text/event-stream

Open murrayju opened this issue 5 years ago • 9 comments

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.

murrayju avatar Jan 20 '20 17:01 murrayju

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

Huachao avatar Jan 21 '20 03:01 Huachao

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

vsnthdev avatar Feb 14 '21 11:02 vsnthdev

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

kaneshir avatar Feb 14 '21 21:02 kaneshir

any news on the event sourcing ?

Med-H avatar Jan 25 '22 10:01 Med-H

Oh I wanted it today so badly 😄

Hermholtz avatar Jan 05 '23 12:01 Hermholtz

need this feature

waltcow avatar Jul 05 '23 03:07 waltcow

Hoping to have it soon

deybith avatar Jul 05 '23 16:07 deybith

Need this feature :)

ferrerogg avatar Mar 29 '24 10:03 ferrerogg

I need that :)

Puliczek avatar May 16 '24 18:05 Puliczek