WebSocketã®ãã©ã ä¸ç¶ãµã¼ãã¹ã®å¯¾å¿ããªãã¨åãã ã«ã¼ã¿ã¼ã«ãã£ã¦ã¯é·æéã¢ã¯ã»ã¹ããªãã¨åãã åãããç¹ããªããã®ã¯ã¯ã©ã¤ã¢ã³ãã®å®è£ 次第 ã»ãã¥ã¢ã«ã¤ãªãããã«ã¯ãµã¼ãã¼ãã¯ã©ã¤ã¢ã³ããæ°ãã¼ã¸ã§ã³ã®ãµãã¼ããå¿ è¦ æ¥ç¶æ°ãè¨ãããå®å®ãã¦æ¥ç¶ãç¶æããã®ã«ã¯çµæ§ãã¦ãã¦ãæ±ãããã åç´ã«åãããå³ç¹ãã§ã¯ä¸ç¶ããµã¼ãã¼ã«åé¡ãçºçãããã¨ããã ããã§EventSourceã§ãã ã¡ã¸ã£ã¼ãã©ã¦ã¶ã§ãµãã¼ãã»äºææ§ãé«ã ãããã³ã«ä»æ§ããã ã®HTTPãã³ã°ãã¼ã«ï¼ã¢ã«ãã¡ ãªã®ã§ã»ã¨ãã©ã®æ¥ç¶çµè·¯ã§ä¸ç¶ãã©ãã«ãå°ãªã JSã®EventSourceå®è£ ãã»ãã·ã§ã³ç¶æãé å¼µã£ã¦ããã ãµã¼ãã¼ããåæããããåæ¥ç¶ããããã¨ãã ç¹ã«Goãªãæ¨æºæ©è½ã§ãã£ãããµã¼ãã¼ãæ¸ãã ã¯ã©ã¤ã¢ã³ãå®è£ let es = new EventSource("/sse"); es
{{#tags}}- {{label}}
{{/tags}}