百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#36862·deno

使用 `wss:` 协议的 `WebSocket` 可能会导致消息的末尾永远无法发送: `bufferedAmount` 为 0,但最后的约 64 KiB 只有在客户端发送其他内容时才会到达。

作者: mathpirate创建于 2026年9月16日更新于 2026年9月16日

`server.ts`: a raw TLS listener that does the WebSocket handshake by hand, then reads 16 KiB at a time with a 1 ms pause and prints how many bytes it has received so far:

内容来源: denoland/deno

查看 GitHub 原文在 GitHub 查看讨论