å°å ¥ node.js 㧠socket.io ã使ã£ã¦ããªããã²ã¼ã ä½ããªãããªï¼ã¨æè¿ãããã試ãã¦ããã ããã§ãä¾ãã°ããããã±ã¼ã¹ ã¦ã¼ã¶ããé¨å±ã®æ°è¦ä½æããé¸ã¶ã¨ãæ°ãããã£ããã«ã¼ã çãªãã®ãã§ãã ã«å¯¾å¿ããå ´åãåçã«åå空éã追å ããããªãã æ¬é¡ socket.io ã§åçã«åå空éã追å ããéã®æ å ±ã£ã¦æå¤ã¨å°ãªããã ãªããè¯ãããªæ¹æ³ãè¦ã¤ããã«ããã®ã§ã¨ããããèªåã使ã£ã¦ããæ¹æ³ãæ®ãã 説æ ã¯ã©ã¤ã¢ã³ãå´ã§ãæ¥ç¶æã« ID ãéã socket.io ã¯ãã¯ã©ã¤ã¢ã³ãããµã¼ãã«æ¥ç¶ããæãã¨ããããã¯ãæã£ã¦ãã [ãµã¼ãå´] io.configure(function () { io.set('authorization', function (handshake, callback) { // å¦ç }); }); ä¸è¨ã®ããã«ãããã ã¾ããã¯ã©ã¤
{{#tags}}- {{label}}
{{/tags}}