{"json_modified": "2016-01-21T03:18:43.274312", "slug": "Web/API/EventSource", "tags": [], "locale": "fr", "title": "EventSource", "translations": [{"title": "EventSource", "url": "/en-US/docs/Web/API/EventSource", "tags": ["Reference", "API", "Interface", "Server-sent events"], "summary": "The EventSource interface is used to receive server-sent events. It connects to a server over HTTP and receives events in text/event-stream format without closing the connection.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-11-21T07:06:39", "review_tags": []}, {"title": "EventSource", "url": "/zh-CN/docs/Server-sent_events/EventSource", "tags": [], "summary": "EventSource\u63a5\u53e3\u7528\u6765\u7ba1\u7406\u670d\u52a1\u5668\u53d1\u9001\u4e8b\u4ef6.\u4f60\u53ef\u4ee5\u901a\u8fc7\u5c06EventSource\u5bf9\u8c61\u7684onmessage\u5c5e\u6027\u6307\u5411\u4e00\u4e2a\u81ea\u5b9a\u4e49\u65b9\u6cd5\u6765\u5904\u7406\u90a3\u4e9b\u4ece\u670d\u52a1\u5668\u63a5\u53d7\u5230\u7684\u65e0\u7c7b\u578b\u7684\u6d88\u606f(\u4e5f\u5c31\u662f,\u6ca1\u6709event\u5b57\u6bb5\u7684\u6d88\u606f).\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528addEventListener()\u65b9\u6cd5\u6765\u76d1\u542c\u5176\u4ed6\u6307\u5b9a\u4e86\u4e8b\u4ef6\u7c7b\u578b\u7684\u6d88\u606f.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2013-01-20T03:45:22", "review_tags": []}, {"title": "EventSource", "url": "/pt-BR/docs/Web/API/EventSource", "tags": [], "summary": "A interface EventSource\u00a0\u00e9 usada para receber eventos enviados pelo servidor (server-sent events). Ele se conecta via HTTP\u00a0em um servidor e recebe eventos com o formato\u00a0text/event-stream\u00a0 sem fechar a conex\u00e3o.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2015-08-04T07:29:39", "review_tags": []}, {"title": "EventSource", "url": "/ru/docs/Web/API/EventSource", "tags": [], "summary": "\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u00a0EventSource \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 (\u042berver-sent events). \u041e\u043d \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u043e HTTP \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435\u00a0text/event-stream \u0431\u0435\u0437 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-08-21T12:48:51", "review_tags": ["technical"]}, {"title": "EventSource", "url": "/ja/docs/Web/API/EventSource", "tags": ["Reference", "API", "Interface", "Server-sent events"], "summary": "EventSource \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u3001Server-sent events \u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002HTTP \u3067\u30b5\u30fc\u30d0\u3068\u63a5\u7d9a\u3057\u3066\u3001\u63a5\u7d9a\u3092\u5207\u65ad\u305b\u305a\u306b text/event-stream \u5f62\u5f0f\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u4fe1\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-01-03T07:05:17", "review_tags": []}], "modified": "2016-01-21T03:18:43", "label": "EventSource", "localization_tags": [], "url": "/fr/docs/Web/API/EventSource", "last_edit": "2016-01-21T03:18:39", "summary": "L'interface EventSource est utilis\u00e9 pour recevoir des \u00e9v\u00e9nements (au sens de donn\u00e9es)\u00a0envoy\u00e9s par le serveur par la m\u00e9thode\u00a0push.\u00a0La connexion au service utilise le protocole HTTP, qui re\u00e7oit les \u00e9v\u00e9nements dans le format\u00a0text/event-stream format sans avoir de fermeture de connexion (c'est-\u00e0-dire une connexion continue).", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Properties", "title": "Properties"}, {"id": "Methods", "title": "Methods"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "id": 173159, "review_tags": ["technical", "editorial"]}