{"version":"1.0","provider_name":"UX TIMES","provider_url":"https:\/\/uxdaystokyo.com\/articles","author_name":"\u9ad8\u6a4b \u7950\u54c9","author_url":"https:\/\/uxdaystokyo.com\/articles\/author\/yuya-takahashi\/","title":"SSE\uff08Server-Sent Events\uff09 | UX TIMES","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"BKCiaJzMfN\"><a href=\"https:\/\/uxdaystokyo.com\/articles\/glossary\/server-sent-events\/\">SSE\uff08Server-Sent Events\uff09<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/uxdaystokyo.com\/articles\/glossary\/server-sent-events\/embed\/#?secret=BKCiaJzMfN\" width=\"600\" height=\"338\" title=\"&#8220;SSE\uff08Server-Sent Events\uff09&#8221; &#8212; UX TIMES\" data-secret=\"BKCiaJzMfN\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/\/# sourceURL=https:\/\/uxdaystokyo.com\/articles\/wp-includes\/js\/wp-embed.min.js\n<\/script>\n","thumbnail_url":"https:\/\/uxdaystokyo.com\/articles\/wp-content\/uploads\/2026\/11\/server-sent-events-eyecatch.png","thumbnail_width":1024,"thumbnail_height":1024,"description":"SSE\uff08Server-Sent Events\uff09\u3068\u306f\u3001Web\u30da\u30fc\u30b8\u3092\u958b\u3044\u3066\u3044\u308b\u30d6\u30e9\u30a6\u30b6\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3092\u4fdd\u3063\u305f\u307e\u307e\u66f4\u65b0\u60c5\u5831\u3092\u53d7\u3051\u53d6\u308b\u4ed5\u7d44\u307f\u3067\u3042\u308b\u3002\u60c5\u5831\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30d6\u30e9\u30a6\u30b6\u3078\u4e00\u65b9\u5411\u306b\u9001\u3089\u308c\u308b\u3002  \u305f\u3068\u3048\u3070\u3001\u751f\u6210AI\u306eClaude\u304c\u56de\u7b54\u3092\u5c11\u3057\u305a\u3064\u8868\u793a\u3059\u308b\u5834\u9762\u3092\u8003\u3048\u308b\u3002\u30d6\u30e9\u30a6\u30b6\u306f\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3092\u4fdd\u3061\u3001\u5c4a\u3044\u305f\u6587\u7ae0\u3092\u9806\u756a\u306b\u753b\u9762\u3078\u8868\u793a\u3059\u308b\u3002SSE\u306f\u53d7\u4fe1\u5c02\u7528\u306a\u306e\u3067\u3001\u5229\u7528\u8005\u304c\u65b0\u3057\u3044\u8cea\u554f\u3084\u6307\u793a\u3092\u9001\u308b\u3068\u304d\u306f\u5225\u306e\u901a\u4fe1\u3092\u4f7f\u3046\u3002 SSE\u3067\u60c5\u5831\u304c\u5c4a\u304f\u4ed5\u7d44\u307f \u30d6\u30e9\u30a6\u30b6\u306f\u3001SSE\u3092\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u300cEventSource\u300d\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u3002\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u9001\u308b\u30c7\u30fc\u30bf\u304cSSE\u5f62\u5f0f\u3067\u3042\u308b\u3053\u3068\u3092\u300ctext\/event-stream\u300d\u3067\u793a\u3057\u3001\u66f4\u65b0\u60c5\u5831\u3092\u30c6\u30ad\u30b9\u30c8\u3067\u9001\u308b\u3002  \u751f\u6210AI\u306e\u56de\u7b54\u3092\u4f8b\u306b\u3059\u308b\u3068\u3001\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3042\u308b\u3002   \u63a5\u7d9a\u3059\u308b\uff1a\u30d6\u30e9\u30a6\u30b6\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3001\u60c5\u5831\u304c\u5c4a\u304f\u306e\u3092\u5f85\u3064\u3002  \u60c5\u5831\u3092\u9001\u308b\uff1a\u30b5\u30fc\u30d0\u30fc\u306f\u300cdata:\u300d\u3067\u59cb\u307e\u308b\u884c\u306b\u56de\u7b54\u306e\u4e00\u90e8\u3092\u66f8\u3044\u3066\u9001\u308b\u3002\u7a7a\u884c\u3067\u4e00\u3064\u306e\u901a\u77e5\u306e\u7d42\u308f\u308a\u3092\u793a\u3059\u3002  \u753b\u9762\u306b\u8868\u793a\u3059\u308b\uff1a\u30d6\u30e9\u30a6\u30b6\u306f\u5c4a\u3044\u305f\u5185\u5bb9\u3092\u9806\u756a\u306b\u53d7\u3051\u53d6\u308a\u3001\u56de\u7b54\u3092\u5c11\u3057\u305a\u3064\u8868\u793a\u3059\u308b\u3002  \u901a\u77e5\u306b\u306f\u672c\u6587\u306e\u307b\u304b\u306b\u3001\u7a2e\u985e\u3092\u8868\u3059\u540d\u524d\u3084\u8b58\u5225\u756a\u53f7\u3082\u4ed8\u3051\u3089\u308c\u308b\u3002\u3053\u308c\u3092\u4f7f\u3048\u3070\u3001\u56de\u7b54\u306e\u958b\u59cb\u30fb\u9014\u4e2d\u30fb\u7d42\u4e86\u3092\u540c\u3058\u63a5\u7d9a\u3067\u77e5\u3089\u305b\u3089\u308c\u308b\u3002  \u901a\u4fe1\u306e\u9014\u4e2d\u3067\u63a5\u7d9a\u304c\u5207\u308c\u3066\u3082\u3001EventSource\u306f\u901a\u5e38\u3001\u81ea\u52d5\u7684\u306b\u518d\u63a5\u7d9a\u3059\u308b\u3002\u53d7\u4fe1\u3092\u7d42\u4e86\u3059\u308b\u3068\u304d\u306f\u300c.close()\u300d\u3067\u63a5\u7d9a\u3092\u9589\u3058\u308b\u3002  \u518d\u63a5\u7d9a\u6642\u306b\u306f\u3001\u6700\u5f8c\u306b\u53d7\u3051\u53d6\u3063\u305f\u901a\u77e5\u306e\u8b58\u5225\u756a\u53f7\u3092\u30b5\u30fc\u30d0\u30fc\u3078\u4f1d\u3048\u3089\u308c\u308b\u3002\u305f\u3060\u3057\u3001\u5207\u65ad\u4e2d\u306b\u5c4a\u304b\u306a\u304b\u3063\u305f\u60c5\u5831\u3092\u518d\u9001\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u5b9f\u88c5\u6b21\u7b2c\u3067\u3042\u308b\u3002\u81ea\u52d5\u518d\u63a5\u7d9a\u3060\u3051\u3067\u3001\u5fc5\u305a\u60c5\u5831\u304c\u88dc\u308f\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3002  Web\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u65b9\u6cd5\u306fSSE\u3060\u3051\u3067\u306f\u306a\u3044\u3002\u4ee3\u8868\u7684\u306a\u65b9\u6cd5\u3092\u6bd4\u3079\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u9055\u3044\u304c\u3042\u308b\u3002    \u65b9\u6cd5 \u554f\u3044\u5408\u308f\u305b\u65b9\u30fb\u60c5\u5831\u306e\u65b9\u5411     \u30dd\u30fc\u30ea\u30f3\u30b0 \u30d6\u30e9\u30a6\u30b6\u304c\u4e00\u5b9a\u9593\u9694\u3067\u66f4\u65b0\u3092\u554f\u3044\u5408\u308f\u305b\u308b   SSE \u63a5\u7d9a\u3092\u4fdd\u3061\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u901a\u77e5\u3092\u5f85\u3064   \u30a6\u30a7\u30d6\u30bd\u30b1\u30c3\u30c8 \u30d6\u30e9\u30a6\u30b6\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u53cc\u65b9\u304b\u3089\u60c5\u5831\u3092\u9001\u308c\u308b    \u8a9e\u6e90\u30fb\u63d0\u5531\u8005 SSE\u306f\u3001Ian\u30a4\u30a2\u30f3 Hickson\u30d2\u30af\u30bd\u30f3 \u304c2004\u5e74\u304b\u3089\u300cWeb Applications 1.0\u300d\u3068\u3044\u3046\u4ed5\u69d8\u306e\u4e00\u90e8\u3068\u3057\u3066\u66f8\u3044\u305f\u6280\u8853\u3067\u3042\u308b\u30022015\u5e742\u67083\u65e5\u306b\u306f\u3001Web\u306e\u6a19\u6e96\u3092\u5b9a\u3081\u308b\u56e3\u4f53W3C\u304c\u3001\u6b63\u5f0f\u306a\u6a19\u6e96\u3067\u3042\u308b\u300c\u52e7\u544a\u300d\u3068\u3057\u3066\u516c\u958b\u3057\u305f\u3002  \u30a4\u30a2\u30f3\u30fb\u30d2\u30af\u30bd\u30f3\uff08\u51fa\u5178\uff1ahttps:\/\/en.wikipedia.org\/wiki\/Ian_Hickson\uff09 \u4ee5\u524d\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u66f4\u65b0\u3092\u5c4a\u3051\u308b\u305f\u3081\u306b\u300c\u30b3\u30e1\u30c3\u30c8\u300d\u3068\u547c\u3070\u308c\u308b\u8907\u6570\u306e\u901a\u4fe1\u624b\u6cd5\u304c\u4f7f\u308f\u308c\u3066\u3044\u305f\u3002SSE\u3084\u30a6\u30a7\u30d6\u30bd\u30b1\u30c3\u30c8\u304c\u6a19\u6e96\u5316\u3055\u308c\u305f\u3053\u3068\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3054\u3068\u306b\u8907\u96d1\u306a\u56de\u907f\u7b56\u3092\u4f7f\u3044\u5206\u3051\u308b\u5fc5\u8981\u306f\u5c0f\u3055\u304f\u306a\u3063\u305f\u3002\u73fe\u5728\u306f\u4e3b\u8981\u306a\u30d6\u30e9\u30a6\u30b6\u304cEventSource\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002 SSE\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8 SSE\u3092\u4f7f\u3048\u3070\u3001\u56de\u7b54\u304c\u5b8c\u6210\u3059\u308b\u524d\u304b\u3089\u5c4a\u3044\u305f\u90e8\u5206\u3092\u8868\u793a\u3067\u304d\u308b\u3002\u5229\u7528\u8005\u306f\u3001\u751f\u6210\u304c\u7d42\u308f\u308b\u307e\u3067\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u753b\u9762\u3092\u898b\u7d9a\u3051\u305a\u306b\u6e08\u3080\u3002  \u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u305b\u305a\u306b\u901a\u4fe1\u3059\u308b\u5f93\u6765\u306e\u4ed5\u7d44\u307f\uff08XMLHttpRequest\uff09\u3084\u3001\u30da\u30fc\u30b8\u306e\u4e2d\u306b\u5225\u306e\u30da\u30fc\u30b8\u3092\u57cb\u3081\u8fbc\u3080\u4ed5\u7d44\u307f\uff08iframe\uff09\u3067\u540c\u3058\u3088\u3046\u306a\u901a\u4fe1\u3092\u771f\u4f3c\u308b\u3088\u308a\u3001EventSource \u3092\u4f7f\u3046\u307b\u3046\u304c\u643a\u5e2f\u7aef\u672b\u306e\u96fb\u6c60\u3092\u5927\u304d\u304f\u7bc0\u7d04\u3067\u304d\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u305f\u3060\u3057\u3001\u305d\u308c\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u5b9f\u88c5\u8005\u3068\u901a\u4fe1\u4e8b\u696d\u8005\u304c\u4e8b\u524d\u306b\u8abf\u6574\u3067\u304d\u308b\u5834\u5408\u306b\u9650\u308b\u3002  \u307e\u305f\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u66f4\u65b0\u304c\u5c4a\u304f\u306e\u3092\u5f85\u3064\u4ed5\u7d44\u307f\u306a\u306e\u3067\u3001\u30dd\u30fc\u30ea\u30f3\u30b0\u306e\u3088\u3046\u306b\u300c\u66f4\u65b0\u306f\u3042\u308b\u304b\u300d\u3068\u4e00\u5b9a\u9593\u9694\u3067\u554f\u3044\u5408\u308f\u305b\u308b\u5fc5\u8981\u304c\u306a\u3044\u3002 \u751f\u6210AI\u3067\u306e\u6d3b\u7528\u3068\u8a2d\u8a08\u4e0a\u306e\u6ce8\u610f\u70b9 Claude\u306eAPI\u3067\u306f\u3001\u300c\"stream\": true\u300d\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u56de\u7b54\u3092SSE\u3067\u9806\u6b21\u53d7\u3051\u53d6\u308c\u308b\u3002\u56de\u7b54\u306e\u958b\u59cb\u30fb\u672c\u6587\u306e\u65ad\u7247\u30fb\u7d42\u4e86\u3092\u793a\u3059\u901a\u77e5\u304c\u5c4a\u304d\u3001\u63a5\u7d9a\u3092\u4fdd\u3064\u305f\u3081\u306e\u300cping\u300d\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u3082\u3042\u308b\u3002\u30b5\u30fc\u30d3\u30b9\u3092\u8a2d\u8a08\u3059\u308b\u3068\u304d\u306f\u3001\u56de\u7b54\u3092\u53d7\u3051\u53d6\u308b\u901a\u4fe1\u3068\u3001\u5229\u7528\u8005\u306e\u64cd\u4f5c\u3092\u9001\u308b\u901a\u4fe1\u3092\u5206\u3051\u308b\u3002  UX\u306e\u8abf\u67fb\u4f1a\u793eNielsen Norman Group\uff08NN\/g\uff09\u306eJakob\u30e4\u30b3\u30d6 Nielsen\u30cb\u30fc\u30eb\u30bb\u30f3\u6c0f\u306f\u300110\u79d2\u7a0b\u5ea6\u3092\u8d85\u3048\u308b\u5f85\u3061\u6642\u9593\u3067\u306f\u3001\u9032\u6357\u306e\u8868\u793a\u3084\u4e2d\u65ad\u624b\u6bb5\u304c\u91cd\u8981\u3060\u3068\u3057\u3066\u3044\u308b\u3002\u751f\u6210AI\u306e\u56de\u7b54\u306b\u3082\u540c\u3058\u8003\u3048\u65b9\u304c\u5f79\u7acb\u3064\u3002\u5b8c\u6210\u307e\u3067\u5f85\u305f\u305b\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u5c4a\u3044\u305f\u5185\u5bb9\u304b\u3089\u8868\u793a\u3057\u3001\u51e6\u7406\u304c\u7d9a\u3044\u3066\u3044\u308b\u3053\u3068\u3092\u4f1d\u3048\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4e2d\u65ad\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002  \u66f4\u65b0\u304c\u306a\u3044\u9593\u3082\u63a5\u7d9a\u3092\u7dad\u6301\u3059\u308b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u5b9a\u671f\u7684\u306b\u300c\u30b3\u30e1\u30f3\u30c8\u884c\u300d\u3092\u9001\u308b\u65b9\u6cd5\u304c\u3042\u308b\u3002\u30b3\u30e1\u30f3\u30c8\u884c\u306f\u30d6\u30e9\u30a6\u30b6\u304c\u901a\u77e5\u5185\u5bb9\u3068\u3057\u3066\u6271\u308f\u306a\u3044\u305f\u3081\u3001\u8868\u793a\u3092\u5909\u3048\u305a\u306b\u901a\u4fe1\u3092\u7d9a\u3051\u3089\u308c\u308b\u3002\u4ed5\u69d8\u66f8\u3067\u306f\u3001\u53e4\u3044\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u308b\u5207\u65ad\u3078\u306e\u5bfe\u7b56\u3068\u3057\u3066\u3001\u7d0415\u79d2\u9593\u9694\u3067\u9001\u308b\u4f8b\u304c\u793a\u3055\u308c\u3066\u3044\u308b\u3002  SSE\u3092\u8907\u6570\u306e\u30bf\u30d6\u3067\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u540c\u6642\u63a5\u7d9a\u6570\u306b\u3082\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3042\u308b\u3002\u63a5\u7d9a\u6570\u306e\u5236\u7d04\u306f\u3001HTTP\/2\u3092\u4f7f\u3046\u304b\u3069\u3046\u304b\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u3002    \u901a\u4fe1\u306e\u6761\u4ef6 \u540c\u6642\u306b\u6271\u3048\u308b\u6570     HTTP\/2\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408 \u30d6\u30e9\u30a6\u30b6\u3068\u30c9\u30e1\u30a4\u30f3\u306e\u7d44\u307f\u5408\u308f\u305b\u3054\u3068\u306b6\u63a5\u7d9a   HTTP\/2\u3092\u4f7f\u3046\u5834\u5408 \u9001\u308b\u5074\u3068\u53d7\u3051\u53d6\u308b\u5074\u304c\u53d6\u308a\u6c7a\u3081\u308b\u3002\u521d\u671f\u8a2d\u5b9a\u306f100\u306e\u901a\u4fe1\u306e\u6d41\u308c    \u30c9\u30e1\u30a4\u30f3\u3068\u306f\u3001\u63a5\u7d9a\u5148\u306eWeb\u30b5\u30a4\u30c8\u3092\u8b58\u5225\u3059\u308b\u540d\u524d\u3067\u3042\u308b\u3002HTTP\/2\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u3001\u540c\u3058\u30d6\u30e9\u30a6\u30b6\u30fb\u540c\u3058\u30c9\u30e1\u30a4\u30f3\u306e\u63a5\u7d9a\u4e0a\u9650\u306f\u8907\u6570\u306e\u30bf\u30d6\u3067\u5171\u6709\u3055\u308c\u308b\u3002  SSE\u306f\u751f\u6210AI\u4ee5\u5916\u306b\u3082\u5229\u7528\u3067\u304d\u308b\u3002\u305f\u3068\u3048\u3070\u3001WHATWG\u306eHTML Living Standard\u306b\u306f\u3001\u682a\u4fa1\u306e\u66f4\u65b0\u3092\u8868\u793a\u3059\u308b\u4f8b\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u3002 \u95a2\u9023\u7528\u8a9e   \u30dd\u30fc\u30ea\u30f3\u30b0  \u30a6\u30a7\u30d6\u30bd\u30b1\u30c3\u30c8  \u30b3\u30e1\u30c3\u30c8  \u30ed\u30f3\u30b0\u30dd\u30fc\u30ea\u30f3\u30b0"}