ä¸è¬è«ã¨ãã¦ãå
¨äºéã®éä¿¡ãããã³ã«ãå®è£
ããã«ããã£ã¦ã¯ãããã¤ã注æãã¹ãç¹ããã£ã¦ãå
·ä½çã«ã¯ãå°é確èªã¨åæã·ã¼ã±ã³ã¹ã«ã¤ãã¦å®ãã¦ãããªãã¨ãééãããã¯ãã®ã¡ãã»ã¼ã¸ããã¹ããã¦ããããåæã¿ã¤ãã³ã°ã«ãã£ã¦ã¨ã©ã¼ãçºç*1ãããããã å
·ä½ä¾ããããã¨ããã¨ãã°TCP/IPã«ããã¦shutdown(2)ãç¨ããã«ããããªãclose(2)ãå¼ãã§ããã¨ãread(2)ãwrite(2)ãã¨ã©ã¼(ECONNRESET)ãè¿ãå ´åãããã ç¿»ã£ã¦ãWebSocket (RFC6455)ã®å ´åã¯ã©ããªã£ã¦ããï¼ãã ããã以ä¸ã®ãããªæãã£ã½ãã ws.close()ãå¼ã³åºãããã¨WebSocketãCLOSINGç¶æ
ã«å¤æ´ããCloseãã¬ã¼ã ãéä¿¡ãã ws.onmessageã¯WebCosketãCLOSINGç¶æ
ã«ããéãå¼ã°ãããããããªã*2 ç¸æããCloseãã¬ã¼ã
{{#tags}}- {{label}}
{{/tags}}