简体   繁体   中英

The strategyn of Streaming API

https://dev.twitter.com/docs/streaming-apis

An app which connects to the Streaming APIs will not be able to establish a connection in response to a user request, as shown in the above example. Instead, the code for maintaining the Streaming connection is typically run in a process separate from the process which handles HTTP requests

As it says the streaming api istead of traditional api, there is one api used for maintain the streaming connection, how to do it? We know the http is something stateless, and only browser make request, and server can make response, how can it maintain the connection? is that client continuely sent request, or the socket in html5, or this issue is not relevant with http, it is just something about c/s?

我认为这不是http的问题,而是在http下运行的东西,例如c / s

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM