Comments (4)
Overall this looks good. However, do you have some data that supports investing more in WebSocket? Now there's WebTransport and streaming in fetch it's becoming kind-of niche so it would be good to know this effort is worth the ongoing maintenance cost.
from standards-positions.
Chrome sees WebSockets used on 10% of page loads: https://chromestatus.com/metrics/feature/timeline/popularity/1149
For comparison WebTransport is still at 0.002% of page loads: https://chromestatus.com/metrics/feature/timeline/popularity/3472
I think that's an indication of the time it takes to ramp up support for a new protocol. WebTransport can do a lot more than WebSocket, but it will be years before it is as easy to deploy. WebTransport is a powerful investment for the future, whereas WebSocketStream is a practical investment for the present.
Most (all?) major server-side environments have mature, solid WebSocket support.
WebSockets are widely supported by CDNs: https://www.cdnplanet.com/guides/websockets/#:~:text=without%20an%20origin%3F-,CDN%20comparison,-Yes
Interest in WebSockets is growing for some reason: https://insights.stackoverflow.com/trends?tags=websocket
Page load percentages for some vaguely related technologies:
- Fetch: 56%; https://chromestatus.com/metrics/feature/timeline/popularity/675
- Fetch response streaming: 12%; https://chromestatus.com/metrics/feature/timeline/popularity/676
- Fetch upload streaming: 0.002%; https://chromestatus.com/metrics/feature/timeline/popularity/3326
- EventSource: 1%; https://chromestatus.com/metrics/feature/timeline/popularity/1479
- RTCPeerConnection: 6%; https://chromestatus.com/metrics/feature/timeline/popularity/3453
from standards-positions.
Thanks! I should have specifically asked for web developer interest as we're curious what adoption might look like. Per https://chromestatus.com/feature/5189728691290112 there's no indication this is desired?
And per https://issues.chromium.org/issues/41470216 the little feedback that was given seemed to desire a fix for backpressure on top of the existing API?
from standards-positions.
For developer interest:
- The Deno runtime has implemented the
WebSocketStream
interface. - A polyfill to use the API in current browsers exists.
from standards-positions.
Related Issues (20)
- JitterBufferTarget
- Notification requireInteraction feature HOT 1
- ReadableStream async iteration HOT 1
- Side Panel
- View Transition Classes
- Web Install API (Same-origin)
- Web Install API (Cross-Origin)
- CSS `text-wrap-style: pretty` property
- Allow CSSImportRule.styleSheet to be null HOT 1
- [css-color-adjust-1] Root non-overlay scrollbars used color scheme
- Viewport Segments CSS and JS API
- Device Posture API
- Dialog light dismiss HOT 1
- CSS: Media Queries Level 5 `Custom Media Queries`
- SVG context-fill and context-stroke
- Digital Credentials API HOT 6
- Snap Events
- Constructors for RTC Encoded Frames with metadata HOT 2
- Importmap integrity HOT 1
- FedCM bundle: Continuation API, account labels, custom parameters, scopes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from standards-positions.