Comet (programming): Difference between revisions

Content deleted Content added
m unbalanced curley brackets
Bender the Bot (talk | contribs)
m Alternatives: HTTP to HTTPS for Blogspot
 
(4 intermediate revisions by 4 users not shown)
Line 69:
}}</ref>{{citation needed|date=June 2023}}
 
In recent years{{When|date=January 2025}}, the standardisation and widespread support of [[WebSocket]] and [[Server-sent events]] has rendered the Comet model obsolete.
 
==History==
Line 101:
 
===First Comet applications===
The first set of Comet implementations dates back to 2000,<ref name="CometDaily_History">{{cite web |url=http://cometdaily.com/2007/10/19/comet-and-push-technology/ |title=CometDaily: Comet and Push Technology |access-date=2007-12-15 |archive-url=https://web.archive.org/web/20071113174053/http://cometdaily.com/2007/10/19/comet-and-push-technology/ |archive-date=2007-11-13 |url-status=dead }}</ref>{{unreliable source?|date=November 2017}} with the [[Pushlets]], [[Lightstreamer]], and KnowNow projects. [[Pushlets]], a framework created by Just van den Broecke, was one of the first<ref name="pushlets-javaworld">Just van den Broecke (1 March 2000). “[http://www.javaworld.com/article/2076063/java-web-development/pushlets--send-events-from-servlets-to-dhtml-client-browsers.html Pushlets: Send events from servlets to DHTML client browsers] {{Webarchive|url=https://web.archive.org/web/20140804175811/http://www.javaworld.com/article/2076063/java-web-development/pushlets--send-events-from-servlets-to-dhtml-client-browsers.html |date=2014-08-04 }}”. JavaWorld. Retrieved 1 August 2014.</ref> open source implementations. Pushlets were based on server-side Java servlets, and a client-side JavaScript library. Bang Networks{{snd}} a [[Silicon Valley]] start-up backed by [[Netscape]] co-founder [[Marc Andreessen]]{{snd}} had a lavishly- financed attempt to create a real-time push standard for the entire web.<ref>{{cite web
|url=http://news.cnet.com/2100-1023-255088.html
|title=Will the "refresh" button become obsolete?
Line 181:
Browser-native technologies are inherent in the term Comet. Attempts to improve non-polling HTTP communication have come from multiple sides:
 
* The [[HTML 5]] draft specification produced by the [[Web Hypertext Application Technology Working Group]] (WHATWG) specifies so called [[server-sent events]],<ref name="server-sent-events">{{cite web|editor=Ian Hickson |date=2007-10-27 |work=HTML 5 - Call For Comments|title=6.2 Server-sent DOM events|url=http://www.whatwg.org/specs/web-apps/2007-10-26/multipage/section-server-sent-events.html#server-sent-events |publisher=[[WHATWG]]|access-date=2008-10-07}}</ref> which defines a new JavaScript interface <code>EventSource</code> and a new MIME type <code>text/event-stream</code>. [[Server-sent events#Web browsers|All major browsers except Microsoft Internet Explorer]] include this technology.
* The [[HTML 5]] [[WebSocket]] API working draft specifies a method for creating a persistent connection with a server and receiving messages via an <code>onmessage</code> callback.<ref>
{{cite web
|url=http://www.w3.org/TR/websockets/
Line 205:
}}</ref>
* Use of plugins, such as [[Java applet]]s or the proprietary [[Adobe Flash]] (using [[Real-Time Messaging Protocol|RTMP]] protocol for data streaming to Flash applications). These have the advantage of working identically across all browsers with the appropriate plugin installed and need not rely on HTTP connections, but the disadvantage of requiring the plugin to be installed
* [[Google]] announced<ref>App, The. (2010-12-02) [httphttps://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html Google App Engine Blog: Happy Holidays from the App Engine team - 1.4.0 SDK released]. Googleappengine.blogspot.com. Retrieved on 2014-04-12.</ref> a new Channel API for [[Google App Engine]],<ref>Paul, Ryan. (2010-12-06) [https://arstechnica.com/web/news/2010/12/app-engine-gets-streaming-api-and-longer-background-tasks.ars App Engine gets Streaming API and longer background tasks]. Ars Technica. Retrieved on 2014-04-12.</ref> implementing a Comet-like API with the help of a client JavaScript library on the browser. This API has been deprecated.<ref>{{cite web |url=https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/channel/package-summary |title=Package com.google.appengine.api.channel |date=2019-11-16 |access-date=2020-04-30 |quote=This API has been deprecated. }}</ref>
 
==See also==