mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #329] Server Sent Events #123
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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 :)
@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.@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
@liyasthomas commented on GitHub (Nov 23, 2019):
Done deal. I'll look forward on implementing this.
I'll ping you in need 😉
@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?
@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
@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?
@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?
@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.
@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.
@liyasthomas commented on GitHub (Nov 25, 2019):
#330
@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)
@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-serverand then you can GET
localhost:8080/.sse