We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
服务端推送是现今Web开发过程中最常见的需求。例如:
Web
一般的服务器推送包括:
long-polling
HTTP Streaming
iframe
<script>
TCP
WebSocket
HTTP
SSE: Server-Sent Events
http
The text was updated successfully, but these errors were encountered:
No branches or pull requests
服务端推送是现今
Web
开发过程中最常见的需求。例如:一般的服务器推送包括:
long-polling
)方式,服务器在一段时间后再返回信息;HTTP Streaming
,通过iframe
和<script>
标签完成数据的传输;TCP
长连接/WebSocket
,可以实现服务器主动发送数据至网页端,它和HTTP
一样,是一个基于HTTP
的应用层协议,跑的是TCP
,所以本质上还是个长连接,双向通信,意味着服务器端和客户端可以同时发送并响应请求,而不再像HTTP
的请求和响应SSE: Server-Sent Events
,这是通过http
协议变通实现的,通过服务端向客户端声明,接下来是要发送的是流信息,本质上就是完成一次耗时长的下载。The text was updated successfully, but these errors were encountered: