Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Q738】websocket 和短轮询有什么区别 #765

Open
shfshanyue opened this issue Feb 9, 2022 · 3 comments
Open

【Q738】websocket 和短轮询有什么区别 #765

shfshanyue opened this issue Feb 9, 2022 · 3 comments
Labels

Comments

@shfshanyue
Copy link
Owner

No description provided.

@shfshanyue shfshanyue added the http label Feb 9, 2022
@zhiyuan5985
Copy link

短轮询是每隔一段时间发送一次HTTP请求,WebSocket 是全双工通讯的协议,允许服务端主动向客户端推送数据。短轮询的实时性不高,而且影响性能,而WebSocket做到了真正意义上的实时。

@1596944197
Copy link

好像是建立长连接,在连接不挂掉期间,都是可以互相传输信息

@wolichuang
Copy link

websocket 是双工道通信协议
短轮询 是单工道

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants