[GH-ISSUE #329] Server Sent Events #123

Closed
opened 2026-03-16 13:32:32 +03:00 by kerem · 13 comments
Owner

Originally created by @ImVexed on GitHub (Nov 23, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/329

Originally assigned to: @liyasthomas on GitHub.

Are there any plans to support SSE / has there been any discussion around this previously?

Originally created by @ImVexed on GitHub (Nov 23, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/329 Originally assigned to: @liyasthomas on GitHub. Are there any plans to support SSE / has there been any discussion around this previously?
kerem 2026-03-16 13:32:32 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@liyasthomas commented on GitHub (Nov 23, 2019):

This seems to be an interesting feature. Where can I read more on implementing them? Or would you like to make a contribution to it :)

<!-- gh-comment-id:557750289 --> @liyasthomas commented on GitHub (Nov 23, 2019): This seems to be an interesting feature. Where can I read more on implementing them? Or would you like to make a contribution to it :)
Author
Owner

@ImVexed commented on GitHub (Nov 23, 2019):

SSE is used for EventSource And is effectively just an HTTP request that is held open with content type of text/event-stream. At that point it's just a uni-directional pipe that allows the server to send JSON events to a client.

<!-- gh-comment-id:557750828 --> @ImVexed commented on GitHub (Nov 23, 2019): SSE is used for [EventSource](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) And is effectively just an HTTP request that is held open with content type of `text/event-stream`. At that point it's just a uni-directional pipe that allows the server to send JSON events to a client.
Author
Owner

@ImVexed commented on GitHub (Nov 23, 2019):

Implementation wise, I think this may actually be incredibly technically easy. Just setup an EventSource on the provided URL and then any time an event occurs, map it onto the UI.

This would also be a feature that sets postwoman apart from tools like Postman/Insomnia/etc. as none of them (afaik) support SSE

<!-- gh-comment-id:557751054 --> @ImVexed commented on GitHub (Nov 23, 2019): Implementation wise, I think this may actually be incredibly technically easy. Just setup an EventSource on the provided URL and then any time an event occurs, map it onto the UI. This would also be a feature that sets postwoman apart from tools like Postman/Insomnia/etc. as none of them (afaik) support SSE
Author
Owner

@liyasthomas commented on GitHub (Nov 23, 2019):

Done deal. I'll look forward on implementing this.
I'll ping you in need 😉

<!-- gh-comment-id:557752484 --> @liyasthomas commented on GitHub (Nov 23, 2019): Done deal. I'll look forward on implementing this. I'll ping you in need 😉
Author
Owner

@liyasthomas commented on GitHub (Nov 23, 2019):

@ImVexed hi there. I made a MVP of SSE debug page. But i dont have an endpoint to test it. All server scripts I found online had CORS restrictions which why I couldn't test them in development. Can you suggest one to make sure it works?

<!-- gh-comment-id:557774830 --> @liyasthomas commented on GitHub (Nov 23, 2019): @ImVexed hi there. I made a MVP of SSE debug page. But i dont have an endpoint to test it. All server scripts I found online had CORS restrictions which why I couldn't test them in development. Can you suggest one to make sure it works?
Author
Owner

@liyasthomas commented on GitHub (Nov 24, 2019):

@ImVexed hi there! I've made a quick MVP for SSE would you like to have a look at it, perhaps test any of your endpoints on it and let me know.

#330

<!-- gh-comment-id:557888115 --> @liyasthomas commented on GitHub (Nov 24, 2019): @ImVexed hi there! I've made a quick MVP for SSE would you like to have a look at it, perhaps test any of your endpoints on it and let me know. - Visit: https://deploy-preview-330--postwoman.netlify.com/websocket - Switch to SSE tab - Enter your endpoint > Start #330
Author
Owner

@ImVexed commented on GitHub (Nov 24, 2019):

Looks like it'd work! But I'm afraid I don't have any CORS compliant + HTTPS SSE servers to test against.

Maybe using https://github.com/kljensen/golang-html5-sse-example with a few extra CORS headers here and a https reverse proxy would be a good test?

<!-- gh-comment-id:557931142 --> @ImVexed commented on GitHub (Nov 24, 2019): Looks like it'd work! But I'm afraid I don't have any CORS compliant + HTTPS SSE servers to test against. Maybe using https://github.com/kljensen/golang-html5-sse-example with a few extra CORS headers [here](https://github.com/kljensen/golang-html5-sse-example/blob/master/server.go#L124) and a https reverse proxy would be a good test?
Author
Owner

@liyasthomas commented on GitHub (Nov 24, 2019):

Oh! Do you know why there's not even a sample/mock serve sent events endpoints available for testing?

<!-- gh-comment-id:557935764 --> @liyasthomas commented on GitHub (Nov 24, 2019): Oh! Do you know why there's not even a sample/mock serve sent events endpoints available for testing?
Author
Owner

@ImVexed commented on GitHub (Nov 24, 2019):

I'm not sure, I tried searching but it's got terrible SEO since "Server Sent Events" and "SSE" aren't very unique. Alongside that most people don't even know about them and just end up using websockets so there isn't as much of a community around it as one would think.

I'm sure there's some finance API that provides data over SSE but I have yet to find one.

<!-- gh-comment-id:557936760 --> @ImVexed commented on GitHub (Nov 24, 2019): I'm not sure, I tried searching but it's got terrible SEO since "Server Sent Events" and "SSE" aren't very unique. Alongside that most people don't even know about them and just end up using websockets so there isn't as much of a community around it as one would think. I'm sure there's some finance API that provides data over SSE but I have yet to find one.
Author
Owner

@liyasthomas commented on GitHub (Nov 24, 2019):

Okay. Let me know if you find one. I'll also look for it. I can't push to production without running some tests.

<!-- gh-comment-id:557937261 --> @liyasthomas commented on GitHub (Nov 24, 2019): Okay. Let me know if you find one. I'll also look for it. I can't push to production without running some tests.
Author
Owner

@liyasthomas commented on GitHub (Nov 25, 2019):

#330

<!-- gh-comment-id:557949540 --> @liyasthomas commented on GitHub (Nov 25, 2019): #330
Author
Owner

@174255317 commented on GitHub (May 16, 2025):

when use sse, hoppscotch print a log:
This browser doesn't seems to have Server Sent Events support.

version: Version 25.4.2 (20250508.111421)

<!-- gh-comment-id:2885503965 --> @174255317 commented on GitHub (May 16, 2025): when use sse, hoppscotch print a log: This browser doesn't seems to have Server Sent Events support. version: Version 25.4.2 (20250508.111421)
Author
Owner

@nagado commented on GitHub (May 16, 2025):

I really want this feature :c
Here is how you can setup a server to connect to locally:
docker run -p 8080:8080 jmalloc/echo-server
and then you can GET localhost:8080/.sse

<!-- gh-comment-id:2887688872 --> @nagado commented on GitHub (May 16, 2025): I really want this feature :c Here is how you can setup a server to connect to locally: `docker run -p 8080:8080 jmalloc/echo-server` and then you can GET `localhost:8080/.sse`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#123
No description provided.