如果Websocket已过时,那么替换是什么?
许多资源,包括此 link 建议建议在介绍http/2之后过时的主要是由于HTTP/2中的双向通信机制。但是问题是那是什么替代者?我一直在研究HTTP协议中的一些新功能,例如服务器推送和流,我发现它们与Websocket所解决的问题无关。
我想在我的问题上添加另一点,如果Websocket已过时,是否意味着Socketio,SignalR,Pusher等也是如此?如果没有,那么他们在引擎盖下使用什么? (除了长期民意调查)
Many resources including this link suggest that after the introduction of HTTP/2, websockets became obsolete mainly due to the bidirectional communication mechanism in HTTP/2. But the question is that what is then the replacement? I have been looking into a few new features in the HTTP protocol such as the Server Push and Streaming and I found them to be quite irrelevant to the problem that the websocket is addressing.
I would like add another point to my question which is that, if websockets are obsolete, does it mean that SocketIO, SignalR, Pusher, etc. are also obsolete as a result? If no, then what do they use under the hood? (Except for long polling)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论