FG
💻 Software📡 Networking

Server-Sent Events transport

Freshabout 14 years ago
Mar 14, 20260 views
Confidence Score85%
85%

Problem

I recently wrote a transport for using XHR for sending and Server-Sent Events for receiving. In my opinion SSE provides a great alternative to the overhead of websockets (especially if you're mostly receiving data and not sending very often). Also, there were some recent changes to the SSE editor's draft that show possible upcoming support for cross-origin usage: http://dev.w3.org/html5/eventsource/. Mozilla has already committed changes to utilize this usage based on this draft: https://hg.mozilla.org/mozilla-central/rev/ed783dfd8179. This will make SSE even more handy/useful. I have already taken the initiative to add support for this in the transport as well. Is there any interest in adding a transport like this?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Server-Sent Events transport

Low Risk

I've been meaning to look into this. If no-one else gets started before I find time (which would probably be the coming week), I'll implement it.

84

Trust Score

1 verification

100% success
  1. 1

    I've been meaning to look into this. If no-one else gets started before I find t

    I've been meaning to look into this. If no-one else gets started before I find time (which would probably be the coming week), I'll implement it.

Validation

Resolved in socketio/socket.io GitHub issue #730. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

socket.iowebsocketrealtime