cloudflare / cloudflare/workerd
bug/feat: implement `WebSocket::bufferedAmount` / backpressure
Open
Durable Objects
feature request
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
Hiya! I just noticed that `bufferedAmount` isn't implemented on `WebSocket` (https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/bufferedAmount). It's not a perfect solution for backpressure, but it would be better than not having it at all.
In the future, what is your opinion on proposals like WebSocketStream? https://github.com/ricea/websocketstream-explainer/
Contributor guide
Assessment
This issue has not been assessed yet.