This domain may be for sale!
This domain may be for sale!
å»å¹´PHPã§å®è£ ããWebSocketãµã¼ãã¼ã«ã¤ãã¦æ¸ãã¾ãããããã©ã¦ã¶ã®ãã¼ã¸ã§ã³ãä¸ãããå 容ãå¤ããªã£ã¦ããã®ã§ã2012å¹´1æ2æ¥ä»ç¾å¨ã®ãã©ã¦ã¶ã§åãããæ¹ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã ååã¨ãã©ã¦ã¶ä»¥å¤ã¯å¤ããã¾ããããä»åã¯ãããªç°å¢ã§åããã¾ãã ãããã®VPS CentOS PHP 5.3.6 Chrome 17.0.942.0 dev-m Firefox 8.0 release channel Safari 5.0.2 iPhoneã®mobile Safari iOS5.0.1 â»ãµã¼ãã¼å´ã®Websocketç¨ãã¼ãéæ¾ãå¿ããã«ã ä»åã®æçµç®æ¨ã¯ä¸è¨ãã©ã¦ã¶ãã¹ã¦ã§åä½ãããªã¢ã«ã¿ã¤ã ãçµµãããã¼ã«ãä½ãäºã«ãã¾ãã ã¾ãã¯åããã¦ã¿ã æé ã©ã¤ãã©ãªãªã©ãé ç½®ãã¦ã²ã¨ã¾ããã¢ç¨ã®ãã£ããã¢ããªã±ã¼ã·ã§ã³ãåããã¦ã¿ã¾ãããããªæé ã§é²ãã¦ããã¾ãã Web
WebSocketãä½é¨ãã¦ã¿ããã®ã¨ããµã¼ããµã¤ãJSã試ãããã®ã¨ãããã«ã¯macçã®Chromeãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã¨ããæ¡ä»¶ãéãªããããã¯ããæ·±å¤ã ãã©node.websocket.jsã試ãã¦ã¿ããããªããªãã¨ããç¶æ³ã«è¿½ãè¾¼ã¾ãã¾ããã æ§æ æè¿ããããã調éããã°ããã®macbook air ã«virtualboxãå ¥ãã¦ãã¾ãããã®ä¸ã§CentOSãåãã¦ãã¾ãã macbookãã¯ã©ã¤ã¢ã³ãã«ãCentOSå´ããµã¼ãã¨ã¿ãã¦ã¦è©±ãé²ãã¦ããã¾ãã ã¡ãªã¿ã«ãvirtualboxã§ã¯ã¢ããã¿ï¼ãNATã«ãã¢ããã¿2ããã¹ããªã³ãªã¼ã¢ããã¿ï¼IPã¯staticã«è¨å®ï¼ã¨ãã¦ããã®ã§ãCentOSããã¯å¤ã«ãæãããããmacbookå´ãããèªç±ã«ã¢ã¯ã»ã¹ã§ãã¾ãããããããªç°å¢ã§ãã Node.JSã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯åå°ã¨ãªãnode.jsãå¿ è¦ãã½ã¼ã¹ããã¦ã³ãã¼
解éãééã£ã¦ããç¹ãããå¯è½æ§ã御座ãã¾ãã®ã§ãäºæ¿ãã ããã¾ããè¨äºã®å 容ã¨ãã¦ã¯ãNode.js ãªãä»ã®ãµã¼ãããããããªã«ç°¡åã« WebSocket ãæ±ãã(ã©ã¤ãã©ãªããã)ãã¨ãããããªå 容ã¨ãªã£ã¦ãã¾ãã®ã§ããäºæ¿ããã ããã°ã¨æãã¾ãã Node.js ã£ã¦ä½ï¼ Node.js ã«ã¤ãã¦ããããããæåã¯ä»¥ä¸ã®ãã¼ã¸ãèªãã§ã¾ããã Node.jsã«é¢ããåºç¤ãéçºã»ãã¥ã¼ããªã¢ã«ã®ã¾ã¨ã:phpspotéçºæ¥èª ä¾ãã°ããã°ã¤ã³ä¸ã®2人ããã¦ã1人ããã£ããã®ãªã¯ã¨ã¹ããããã¨ãã¾ããã§ãã©ã°ã30ç§ã»ã©ãã£ã¦ãæ°ä»ããã«éãã¡ãããªãã¦ãã¨ããªããªãã¾ãã ã¡ã³ãã¼Aã®ãã©ã¦ã¶ãã¡ã³ãã¼Bã®ãã©ã¦ã¶ã«ç´æ¥ããã·ã¥ããã£ã¦ãã¨ãã¨æåã¯æã£ã¦ãã¾ãããéãã¾ããããã®ç¹ã«ã¤ãã¦æ·±ãèãã¦ãããã¨ã¨ãªãã¾ãã Node.js ã使ãã¨ä½ãã§ããã®ã node.js ã使
ãããã2ã¶æããããã¡ã¾ã¡ã¾ã¨ä½ãç¶ãã¦ããã®ãããããåãããã«ãªã£ãããªã¼ã¨ããç¶æ ã«ãªã£ãã®ã§å ¬éãã¦ã¿ãã http://www1216u.sakura.ne.jp/livecoder/ å ¬éåæ¢ãã¾ãã æå ã®Macã§Chrome, Safari, Firefoxã§ã¯åãã¦ãããIEã¯ç¥ããªãã ã½ã¼ã¹ã¯Githubã«ã https://github.com/sugyan/live-coder 使ãæ¹ Twitterã§signinã /edit ã®ã¨ãã£ã¿ä¸ã§ããã¹ããç·¨éããã¨ã /view/ ã§ãªã¢ã«ã¿ã¤ã ã«ç·¨éãåæ ããã(ãã¡ãã¯read only)ã åãã¦ã¼ã¶ã®ãã¼ã¸ãè¦ã¦ããã¦ã¼ã¶å士ã§ã®ããã¹ããã£ãããå¯è½ã æ§æ Server node.js v0.4.1 ã©ã¤ãã©ãªã¯npmã«ã¦ socket.io, express, ejs, oauth, configã
ã¯ããã« åãã¾ãã¦ãNTTã¢ããã³ã¹ãã¯ããã¸ã®éåã¨ç³ãã¾ãã幸éã«ãè¨äºãå·çããã¦ããã ãããã¨ã«ãªãã¾ãããWebSocketã¨ããæ°ããã¦ã§ãã®è¦æ ¼ã«ã¤ãã¦ã®é£è¼ããå ¨4åã®äºå®ã§ãå±ããã¾ãã ç¨èªçµ±ä¸ã«ã¤ã㦠WebSocketã¯ãWebSocketããâ WebSocketsâ ãâ ãåèªãåãé¢ãããWeb Socketãçã表è¨ã«æºããããã¾ãã2009å¹´12æ22æ¥ã®ã¯ã¼ãã³ã°ãã©ããã®ã¿ã¤ãã«ã¯ãThe Web Sockets APIãã¨ãªã£ã¦ãã¾ããã2010å¹´4æ26æ¥ã®ã¨ãã£ã¿ã¼ãºãã©ããã§ã¯ãThe WebSocket APIãã¨ãªã£ã¦ãã¾ãããã®é£è¼ã§ã¯ãææ°ã®ä»æ§æ¸ã«åããç¨èªããWebSocketãã§çµ±ä¸ãã¾ãã HTML5ã¨WebSocketã®é¢ä¿ WebSocketã¯ããã¨ãã¨HTML5ã®ä¸æ©è½ã¨ãã¦ä»æ§ã®çå®ãé²ãããã¦ãã¾ãããããããWeb S
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}