Skip to content

Remove SOCKET_WEBRTC socket backend and dependencies#27367

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:remove_socket_webrtc
Open

Remove SOCKET_WEBRTC socket backend and dependencies#27367
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:remove_socket_webrtc

Conversation

@sbc100

@sbc100 sbc100 commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Remove -sSOCKET_WEBRTC setting along with its vendored third-party dependencies third_party/socket.io.js (Socket.IO client v0.9.11) and third_party/wrtcp.js (experimental WebRTC P2P broker from 2012).

SOCKET_WEBRTC has long been marked as untested and potentially broken in src/settings.js, and has no test coverage in the test suite. Furthermore, the underlying libraries depend on obsolete protocol versions, vendor-prefixed WebRTC constructors, and a hardcoded STUN server IP address.

-sSOCKET_WEBRTC=0 is moved to LEGACY_SETTINGS for backwards compatibility, while passing -sSOCKET_WEBRTC=1 will now produce a clear error.

Fixes: #27366

Remove `-sSOCKET_WEBRTC` setting along with its vendored third-party
dependencies `third_party/socket.io.js` (Socket.IO client v0.9.11) and
`third_party/wrtcp.js` (experimental WebRTC P2P broker from 2012).

`SOCKET_WEBRTC` has long been disabled by default, marked as untested
and potentially broken in `src/settings.js`, and has no test coverage
in the test suite. Furthermore, the underlying libraries depend on
obsolete protocol versions, vendor-prefixed WebRTC constructors, and a
hardcoded STUN server IP address.

`-sSOCKET_WEBRTC=0` is moved to `LEGACY_SETTINGS` for backwards
compatibility, while passing `-sSOCKET_WEBRTC=1` will now produce a
clear error.
@sbc100
sbc100 requested review from juj and kripken and removed request for kripken July 17, 2026 18:14

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, though should we wait to see if users are using it?

@sbc100

sbc100 commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Yes lets see if anyone responds to https://groups.google.com/g/emscripten-discuss/c/cCHo6tiLhL8.

Also, I forgot to follow all the steps in https://github.com/emscripten-core/emscripten/blob/main/docs/process.md#deprecating-settings-and-features. Will do that..

sbc100 added a commit that referenced this pull request Jul 17, 2026
See #27366

If we don't get any feedback after a few releases we can followup with #27367.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Propose removal of SOCKET_WEBRTC socket backend

2 participants