[GH-ISSUE #4372] [bug]: SSE connection established but no incoming responses displayed in Hoppscotch #1595

Open
opened 2026-03-16 21:00:13 +03:00 by kerem · 3 comments
Owner

Originally created by @supratikmahato on GitHub (Sep 21, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4372

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When attempting to establish a connection to the SSE Playground using Server-Sent Events (SSE) in Hoppscotch, the connection is successfully established. However, no incoming responses are displayed within the application.

Steps to reproduce

Hoppscotch_qfJ3UyLSOe

Environment

Release

Version

Local

Originally created by @supratikmahato on GitHub (Sep 21, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4372 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When attempting to establish a connection to the [SSE Playground](https://sse.dev/test) using Server-Sent Events (SSE) in Hoppscotch, the connection is successfully established. However, no incoming responses are displayed within the application. ### Steps to reproduce ![Hoppscotch_qfJ3UyLSOe](https://github.com/user-attachments/assets/deb042ca-34c6-4663-8385-18b43f2d2db1) ### Environment Release ### Version Local
Author
Owner

@shuaixr commented on GitHub (Oct 3, 2024):

github.com/hoppscotch/hoppscotch@e9e1366cc8/packages/hoppscotch-common/src/helpers/realtime/SSEConnection.ts (L46-L52)

hoppscotch uses addEventListener to capture SSE messages, but since https://sse.dev/test don't send the event field, it can't be caught by addEventListener

However, SSE connections without the event field are common; for example, ChatGPT SSE connection also lacks the event.

<!-- gh-comment-id:2391903708 --> @shuaixr commented on GitHub (Oct 3, 2024): https://github.com/hoppscotch/hoppscotch/blob/e9e1366cc8a0f6d3116cb4ab5a44b964d1d36128/packages/hoppscotch-common/src/helpers/realtime/SSEConnection.ts#L46-L52 hoppscotch uses addEventListener to capture SSE messages, but since https://sse.dev/test don't send the event field, it can't be caught by addEventListener However, SSE connections without the event field are common; for example, ChatGPT SSE connection also lacks the event.
Author
Owner

@julianojstavares commented on GitHub (Nov 30, 2024):

A method to capture unnamed events, that is, without the "event: <event_name>" field, would be nice.

<!-- gh-comment-id:2508982823 --> @julianojstavares commented on GitHub (Nov 30, 2024): A method to capture unnamed events, that is, without the "event: <event_name>" field, would be nice.
Author
Owner

@supratikmahato commented on GitHub (Dec 1, 2024):

A method to capture unnamed events, that is, without the "event: <event_name>" field, would be nice.

Yeah.

<!-- gh-comment-id:2509562751 --> @supratikmahato commented on GitHub (Dec 1, 2024): > A method to capture unnamed events, that is, without the "event: <event_name>" field, would be nice. Yeah.
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#1595
No description provided.