node.js + socket.io ã¯ãªã¢ã«ã¿ã¤ã webã¢ããªãä½ãã®ã«ã¨ã¦ãè¯ãçµã¿åããã ã¨æã£ã¦ãã¾ãã ããããåºæ¬çã«socket.ioã®connectionã¯httpã®sessionã¨é¢é£ãç¡ãã®ã§ãä¾ãã°ãã®connectionããã°ã¤ã³ãã¦ããã¦ã¼ã¶ã®ãã®ããã®ä»ã®ã¦ã¼ã¶ã®ãã®ãåºå¥ãã¤ããªãã以åã¯SessionWebSocketã使ã£ã¦ãããå¤å¥ããããã«ãã¦ããã®ã ãã©ãæ®å¿µãªãã¨ã«æ®å¿µãªã®ã§ã³ã¬ã¯ãã使ããããªããã ããã§clientããæåã«cookieãéä¿¡ãã¦ããã£ã¦ãããããclientã®sessionãèå¥ãããã¨ããæ¹æ³ããããã¨ä»¥å@masahirohããã«æãã¦ããã ãã¾ããã *1 sessionå ±ææ¹æ³ ã¯ã©ã¤ã¢ã³ãå´ã§ã¯ä¸è¨ã®ããã«æ¥ç¶æã«cookieãéä¿¡ããããã«ãã¦ããã var socket = new io.Socket();
{{#tags}}- {{label}}
{{/tags}}