HTTP server push
공부를 해보자/프로그래밍 2010. 2. 9. 14:05Generally the web server does not terminate a connection after response data has been served to a client. The web server leaves the connection open such that if an event is received, it can immediately be sent to one or multiple clients. Otherwise the data would have to be queued until the client's next request is received. Most web servers offer this functionality via CGI (e.g. NPH scripts on Apache).
Another mechanism is related to a special MIME type called multipart/x-mixed-replace
, which was introduced by Netscape
in 1995. Web browsers would interpret this as a document changing
whenever the server felt like pushing a new version to the client.[1][2] It is still supported by Firefox, Opera and Safari today, but traditionally ignored by Microsoft.[3] It can be applied to HTML documents, but also for streaming images in webcam applications.
The WHATWG Web Applications 1.0 proposal[4] included a mechanism to push content to the client. On September 1, 2006, the Opera web browser implemented this new experimental technology in a feature called "Server-Sent Events."[5][6] It is now being standardized as part of HTML5.[7] Another related part of HTML5 is the Web Sockets API, which allows a web server and client to communicate over a full-duplex TCP connection.[8] Web Sockets are available on Google Chrome since 4.0.249.0[9], and there is a JavaScript library by Kaazing that emulates them
'공부를 해보자 > 프로그래밍' 카테고리의 다른 글
IPC:Message Queues (0) | 2010.03.26 |
---|---|
JPEG EXIF (0) | 2010.03.05 |
Streaming media protocols (0) | 2010.02.09 |
Vi: Search and Replace (0) | 2009.03.24 |
Wotsit.org - 각종 파일 정보 (0) | 2009.03.23 |