fe-notes icon indicating copy to clipboard operation
fe-notes copied to clipboard

HTTP2 和 WebSocket 服务器推送区别

Open Inchill opened this issue 3 years ago • 0 comments

  • HTTP2 Server Push,一般用以服务器根据解析 index.html 同时推送 JPG/JS/CSS 等资源,而免了服务器发送多次请求。
  • WebSocket,需要服务器与客户端手动编写代码实现全双工通信,WebSocket 在 HTTP 协议之上升级后才可用。

Inchill avatar Aug 12 '22 09:08 Inchill