Play Frameworkã§ã¯WebSocketã®ã³ã³ããã¼ã©ãåä¿¡ããåï¼éä¿¡ããå¾ã«FrameFormatterã使ã£ã¦ãã¼ã¿ãå å·¥ããå¦çãå ¥ãããã¨ãã§ããããã«ãªã£ã¦ãã¾ããä»åã¯ãããç¨ãã¦å§ç¸®æ©è½ãå ¥ãã¦ã¿ã¾ããã使ç¨ããPlayã®ãã¼ã¸ã§ã³ã¯2.2.1ã§ãã FrameFormatterã®ä½¿ãæ¹ Playã§WebSocketã使ç¨ããå ´åã以ä¸ã®ãããªæãã§ã³ã³ããã¼ã©ãæ¸ãã¾ãï¼Playã®ããã¥ã¡ã³ãããæåï¼ã object Application extends Controller { def index = WebSocket.using[String] { request => //Concurernt.broadcast returns (Enumerator, Concurrent.Channel) val (out,channel) = Concurre
Weâre excited to announce that WebSocket functionality is now available on Heroku in public beta. We canât wait to see the powerful and creative real-time apps youâll build. In this post, we show how to get up and running with WebSockets and demonstrate the functionality with two sample apps you can get on GitHub. Editor's Note: WebSockets support is now Generally Available. The heroku labs:enable
æè¿ SPDY 㨠WebSocket ãã¢ããã§ããã åæ¥é±ã® SPDY & WS åå¼·ä¼ ããå®å¡100åã«å¯¾ã㦠åå è ã 247 åã¨ããªãã¢ãããã¨ã«ãªã£ã¦ãã¾ãã ãã®äºç¿ã¨ããããã§ããªãã§ãããæè¿ WebSocket ãå®ãµã¼ãã¹ã¸ã® å°å ¥æ¹æ³ãèããªããéãã§ããã®ã§ã WebSocket ã®è² è·åæ£æ¹æ³ã«ã¤ã㦠èãã¦ãããã¨ãæ¸ãã¦ãããã¨æãã¾ãã ã¹ãã¼ããã«ãª WebSocket ã¢ããªã±ã¼ã·ã§ã³ HTTP ãµã¼ãã¹ã¯åºæ¬çã«ã¹ãã¼ãã¬ã¹ãªå®è£ ã«ãªã£ã¦ããããªã¯ã¨ã¹ããæ¥ããã³ã« DBãµã¼ãã¼ã memcached ãªã©ã®ããã¯ã¨ã³ãããæ å ±ãåå¾ãã¦è¿ãã¦ãã¾ããã ãã®æ§æã§ã¯ Web ã¢ããªèªä½ã¯å®å ¨ã«ã¹ãã¼ãã¬ã¹åãããã¨ãã§ãã¦ããã®ã§ã è² è·åæ£æ©ã¯ã©ã¦ã³ãããã³çã®ã¢ããªã±ã¼ã·ã§ã³ãç¡è¦ããè² è·åæ£ããããã¨ãã§ãã¾ããã ãããã WebSo
nginx(1.3.13)ã§WebSocketã®ãããã·ã試ãã¦ã¿ã¾ãã 2013/2/19ã«nginxãæ£å¼ã«WebSocketã«å¯¾å¿ããã¨ã¢ãã¦ã³ã¹ããã£ãã®ã§ã試ãã«ä½¿ã£ã¦ã¿ã¾ããã ãã¦ã³ãã¼ãã»ã¤ã³ã¹ãã¼ã« ããããnginx-1.3.13ããã¦ã³ãã¼ããã¦ãã¦ãã¤ã³ã¹ãã¼ã«ãã¾ãã ã¤ã³ã¹ãã¼ã«ãªãã·ã§ã³ã¯ããã¦ããã©ã«ã㧠$ wget http://nginx.org/download/nginx-1.3.13.tar.gz $ tar xvf nginx-1.3.13.tar.gz $ cd nginx-1.3.13 $ ./configure $ make $ sudo make install è¨å®ãã¡ã¤ã«ã®æ¸ãæã 次ã«nginx.confãæ¸ãæãã¾ããæ§æ㯠ãªãã¼ã¹ãããã·: 192.168.0.8:80 ããã¯ã¨ã³ããµã¼ã: 192.168.0.2:3000
ã¹ãã¼ããã©ã³åãã¢ããªéçºããµã¼ããµã¤ãã®éçºã«é¢ããæè¡ããã°ã§ãã ã¨ã³ã¸ãã¢dommyã®ã¤ã¶ããã¯@shonanshachuãã½ã¼ã¹ã³ã¼ãã¯GitHubã§é ä¿¡ä¸ã Android Advent Calendar 2012ã«åå ããdommyã§ãã 2012å¹´ããã¨2æ¥ãä»å¹´ãå±±ããè°·ããã®1å¹´ã§ããã 12æ30æ¥ã¯ãã§ã«Advent Calendarã«è¼ãã¹ãæ¥ä»ã§ãç¡ãã§ããã Androidã«é¢ããè¨äºãªããªãã§ãè¯ãã¨ã®äºã ã£ãã®ã§ã ãªã¢ã«ã¿ã¤ã éä¿¡é¢é£ã®è¨äºãæ¸ãã¦ã¿ããã¨æãã¾ãã åæã¨ãã¦ãAndroidã§ã®éä¿¡ã¨ããã°HTTPã«ãªãã¾ãã ããã¯ã¯ã©ã¤ã¢ã³ãããã®ãªã¯ã¨ã¹ãã«å¯¾ãã¦ããµã¼ããã¬ã¹ãã³ã¹ãè¿ãã¨ããå½¢ã§ã ãµã¼ããããªã¯ã¨ã¹ãããäºã¯åºæ¥ãªãã®ã§ã ãªã¢ã«ã¿ã¤ã éä¿¡ã¨ã¯éãã¾ãã socketéä¿¡Androidã¯NDKã使ãã°Cè¨èªã§ãå®è£ å¯è½ãªã®
http://keima.herokuapp.com/ ããã¼polling!? pollingã許ãããã®ã¯å°å¦çã¾ã§ã ããã¼ããã£ããããã¨ããããã§pushéç¥ã«WebSocketãã使ãã®ã¿ãªãã¾ãããã«ã¡ã¯ã ããããæ¯åãWebSocketãæ±ãæ©è½ãå®è£ ããã®ã¯ãããã¤ãã®çç±ã§é¢åã§ããã! WebSocketã¯æ§ã ãªãã¼ã¸ã§ã³ãããã®ã§ããã¹ã¦ã«å¯¾å¿ããã®ã¯é¢åã åæ§ã®çç±ã§ãåå¥ã®ã¢ããªã§ä½ãè¾¼ãã§ãã¾ãã¨ãWebSocketã®ãã¼ã¸ã§ã³ã¢ããã«è¿½å¾ããã®ãé¢åã WebSocketã¯å¤§æµå¥ãµã¼ãã«ãªã£ã¦ããã®ã§ãè¨å®ãé¢åã Herokuçã®PaaSã§ã¯WebSocketã使ããªããã¨ãå¤ãã (2015/1/23追è¨: Herokuã¯WebSocketããµãã¼ãããããã«ãªãã¾ãã) ããã§ãWebSocketã«ããpushéç¥ã«ç¹åããWebãµã¼ãã¹ Keima
ã¢ããªã±ã¼ã·ã§ã³ãã©ãããã©ã¼ã ãµã¼ãã¹ãæä¾ããç±³dotCloudã¯8æ6æ¥ãåæ£HTTPãããã·ãHipacheãããªã¼ãã³ã½ã¼ã¹ã§å ¬éãããWebSocketãããã³ã«ã«å¯¾å¿ãããªãããã¤ãªã¢ã«ã¿ã¤ã ãªWebã¢ããªã±ã¼ã·ã§ã³ã®éçºã»éç¨ãæ¯æ´ããã¨ããã dotCloudã¯Platform as a Serviceï¼PaaSï¼äºæ¥ãè¡ãä¼æ¥ããã¾ãã¾ãªè¨èªãã½ããã¦ã§ã¢ã¹ã¿ãã¯ã«å¯¾å¿ãããã©ãããã©ã¼ã ãæä¾ãã¦ããã è¿å¹´ãWebã¢ããªã±ã¼ã·ã§ã³ã«ãããã¯ã©ã¤ã¢ã³ããµã¼ãã¼éã®éä¿¡æ段ã¨ãã¦WebSocketãããã³ã«ã注ç®ããã¦ããããè¿å¹´Webã¢ããªã±ã¼ã·ã§ã³ã§å¤ã使ããã¦ããnginxãHAProxyãªã©ã®ãã¼ã«ã¯WebSockectã«å¯¾å¿ãã¦ããªãããã®åé¡ã解決ããããã«éçºãããã®ãHipacheã¨ãªããHipacheã¯dotCloud社å ã®ãããã¯ã¼ã¯ã«ã¼ãã£ã³ã°ã¤ã³
intro ãªãã ããã WebSocket ã使ã£ã¦ãã®ã«ã WebSocket ãµã¼ããèªåã§æ¸ãããã¨ãç¡ãã£ãã®ã§ãRFC ãè½ã¡çãã¦ãããããã§ãä»æ§ãèªã¿ãªããå®è£ ãã¦ã¿ããã¨æãã¾ããã "WebSocket ãµã¼ã å®è£ " ã¨ãã§ã°ã°ãã¨ã Socket.IO ã¨ã pywebsocket 㧠WebSocket ã¢ããªä½ã£ã¦ããWebSocket ãµã¼ããå®è£ ãã¿ãããªã¿ã¤ãã«ã«ãªã£ã¦ããã¨ãå¤ãã¿ããã§ããã (Apache ã« PHP 㧠HelloWorld ãã¦ããHTTP ãµã¼ãå®è£ ãã¾ãããã¨ã¯è¨ããªãããã) ãã®è¨äºã§ã¯ã WebSocket ãããã³ã«ãããã¹ããµã¼ãèªä½ãå®è£ ãã¾ãã ã¨ãã£ã¦ããå ¨é¨ããã®ã¯ã¡ãã£ã¨å¤§å¤ã ã£ãã®ã§ãåºæ¬çãªããã¹ãã¡ãã»ã¼ã¸ã®ããã¨ãã®é¨åã ããã£ã¦ãã¨ã³ã¼ãµã¼ããã§ããã¨ããã¾ã§ããã¾ããã å®æçã®ã½ã¼ã¹ã¯ä»¥ä¸ã§
(追è¨ï¼2012-12-13) æ¬è¨äºãé»åæ¸ç±åãã¾ããããGumroadããéãã¦100åã«ã¦è²©å£²ãã¦ãã¾ããå 容ã«ã¤ãã¦ã®è¿½å ã»å¤æ´ã¯ããã¾ããããæä½ã®å¤æ´ã誤è¨ã®ä¿®æ£ããã³ã¡ãã£ã¢åãã®èª¿æ´ãè¡ã£ã¦ãã¾ãã é»åæ¸ç±ãirbããå¦ã¶Rubyã®ä¸¦åå¦ç ~ forkããWebSocketã¾ã§ãEPUBç ãã®ãªã³ã¯ã¯Gumroadã«ãããååè³¼å ¥ãªã³ã¯ã«ãªã£ã¦ãã¾ããã¯ãªãã¯ããã¨ããªã¼ãã¼ã¬ã¤ã»ã¦ã¤ã³ãã¦ãç«ã¡ä¸ãã£ã¦ããã®å ´ã§ã¯ã¬ã¸ããã«ã¼ã決æ¸ã«ããè³¼å ¥ãå¯è½ã§ããè³¼å ¥ã«ã¯ã¯ã¬ã¸ããæ å ±ããã³ã¡ã¼ã«ã¢ãã¬ã¹ã®å ¥åãå¿ è¦ã«ãªãã¾ããè³¼å ¥ããã¨ãå ¥åããã¡ã¼ã«ã¢ãã¬ã¹ã«ã³ã³ãã³ãã®DLãªã³ã¯ãéããã¦ãã¾ãã è³¼å ¥ãæ¤è¨ã®ã»ã©ãããããé¡ããã¾ãm(__)m é¢é£è¨äºï¼ é»åæ¸ç±ãirbããå¦ã¶Rubyã®ä¸¦åå¦ç ~ forkããWebSocketã¾ã§ãEPUBçãGumroad
æ´¾æã§è¦æ ãããã大è¦æ¨¡ãªãããã¯ããä½ããï¼ã£ã¦ãããã¨ã§ãä¸äººã§ãã«ã¹ã¿ãã¯ãªããã²ãä½ã£ã¦ããã大ããªããã°ã©ã ãæ¸ãã¦ãç ´ç¶»ããªãããã«ãã¹ãæ¸ãã¾ãã£ã¦ãã¹ããã¡ã¼ã¹ããå¿ãããããTravis-CIã«ããç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ã§é å¼µã£ããã ã¨ããããã§ä½ã£ã¦ããã®ã¯MMORPGãªãã ãã©ãããã§å®è£ ããã®ã¯ã¾ãå¹³åçãªMMORPGãæ³åãã¦ããããããèªåããããã¨ãã¦ããã®ã¯ãã¢ãã³ãªOSSã¨ãããã®å®ãVPSã§ãç¬å¦ã®å¦çä¸äººã§ããã«ã¹ã¿ãã¯ãªããã²ã¿ãããªã®ãçµãããã¨ãããã¨ã®å®è¨¼ã ãªãã§ãããªãã¨ããã¦ãããã£ã¦è¨ãã¨ãä¸å¿å°±æ´»ä¸ã§ãè¦æ ããããã¢ããªæåºã§ããã¨ãããããªã¼ã£ã¦ããä¸å¿ã *追è¨* ããã§ã¯ https://github.com/mizchi/wanderer ã®ãã¨ãè¨ã£ã¦ããã ãã©å¤§è¦æ¨¡ãªãã¡ã¯ã¿ãªã³ã°ä¸ãªã®ã§ããã§è¨ã£ã¦ããã¨ã¯ååããã
ãã£ããæ±äº¬Nodeå¦åç¥2011ã«åºããã Google Developer Day 2011 ã«åºãããã¦ããã®ã§ã ä½ãã¢ããªãä½ããã¨æã£ã¦ä½ã£ã¦ã¿ã¾ããã http://yosuketest.node-ninja.com/ nodefestã§ã¢ã«ã¦ã³ããããã£ãNodeNinjaä¸ã§åãã¦ãã¾ãã WebSocketãåãã®ã¯ããæãã ãã ããGoogle Developer Days ã§ã NodeFestã§ãHTMLã§ãã¬ã¼ã³ããã¦ããã®ã§ãèªåããã£ã¦ã¿ããã¨æã å®æ½ãã¦ã¿ã¾ããã ãã¬ã¼ã³ããã¨ãã«è´è¡ã®æ¹ã ããã®å ´ã§çåã«æã£ããã¨ãã³ã¡ã³ããä»ç®ã«ãã¦ç´æ¥è³æã«åæ ããäºãã§ãã¾ãã ããã«ã¯ãªãã¯ã§ä»ç®ãè²¼ããã³ã¡ã³ããæ¸ãã°åæ ããã¾ãã æ¬å½ã¯ã¯ãã¼ãºããªå ´æã§ãã¬ã¼ã³ããªããããã³ããå ¥ããã¨ã¿ããªã«ãè¦ãã¦ããããªã¨ã ããã«ãã¦ãNodeNinjaã«é
http://tily.no.de/telephone ããããã¼ã¸ãé¨å±ã¨ããã¯ãã¼ã ã決ãã¦éå§ãã http://tily.no.de/telephone/sandbox æ軽ã«è©¦ãç¨ é»è©±ã¨ãããé³å£°ãã£ãããªãã ãã©ãFlash ã®ãã¤ã¯ã§ã¨ã£ãé³å£°ã WebSocket çµç±ã§éä¿¡ãã¦ãåãåã£ãå´ã§ã¯ Web Audio API ã¨ã Audio Data API ã¨ãã§åçããã¨ããã®ãä½ã£ããFirefox 㨠Chrome ã§åãã ã¯ããªãã ãã©ãno.de ã® SmartMachine ã®ã¹ããã¯ãä½ãããããé 延ã®ãããããç¸æå´ã®é³å£°ãããããåãã¦è´ããã¦ãã¾ãâ¦ããã¼ã«ã«ã§ã¯ã¡ããã¨é³å£°ãã£ããã£ã½ããã¨ãã§ãã¦ãããã ãã©ã ãªããè²ã ä»ã®äººã®ã³ã¼ãã使ã£ããåèã«ãããããã®ã§æ¸ãã¦ããã¾ãã socket.io ãµã³ãã«ã®ãã£ããããã°ã©ã ãã¶ã¤ã³ã¨
Dev fest 2020 taiwan how to debug microservices on kubernetes as a pros (ht...
node.js+Socket.IOã§ãªã¢ã«ã¿ã¤ã ã¢ããªã±ã¼ã·ã§ã³ãä½ããããã ãã©ãWebSocket使ãã«ãã¦ãXHR-Polling使ãã«ãã¦ããµã¼ãçµç±ãã¦éä¿¡ãã¦ããã°å½ç¶ã¿ã¤ã ã©ã°ã¯ããããã§ãããã£ã¦ã©ããããé 延ãããã®ãªãã ããï¼ ã¨æã£ã¦ããããªãµã¼ãã§è©¦ãã¦ã¿ã(追è¨ãã¾ãã)ã 測å®æ¹æ³ var server = require('http').createServer(function (req, res) { require('data-section').get('html', function (err, data) { res.writeHead(200, { 'Content-Type': 'text/html' }); res.end(data); }); }); var io = require('socket.io').listen(server);
Nginxããªãã¼ã¹ãããã·ã¨ãã¦åããããã®å¾ãã§Socket.IOãåä½ãããæ¹æ³ãnginx_tcp_proxy_moduleã使ç¨ã WebSocketã®ãµã¼ãã¼ãããªãã¼ã¹ãããã·ãµã¼ãã¼ã®å¾ãã§åä½ãããããã«ã¯ããã®ãªãã¼ã¹ãããã·ãµã¼ãã¼ãHTTP 1.1ã®Upgradeãé©åã«æ±ã£ã¦ãããå¿ è¦ãããã¾ãï¼æ¨ã¦ããããªããã¨ï¼ãNginxã¯ãã°ãã°ãªãã¼ã¹ãããã·ã¨ãã¦ä½¿ç¨ããã¾ãããnginxã®proxy_passãã£ã¬ã¯ãã£ãã¯ãã®ã¾ã¾ã§ã¯websocketã®æ¥ç¶ãæå¾ éãã«æ±ã£ã¦ããã¾ãããyaoweibinãããä¸è¬çãªtcpæ¥ç¶ããªãã¼ã¹ãããã·ããããã®ã¢ã¸ã¥ã¼ã«ãnginx_tcp_proxy_moduleãä½æãã¦ãã ãã£ã¦ãã¾ãããã®nginx_tcp_proxy_moduleã使ç¨ãã¦nginxã§websocketãµã¼ãã¼ããªãã¼ã¹ãããã·ã§ããããã«ã
Chrome 14ããWebSocketãããã³ã«ã®ãã¼ã¸ã§ã³ãdraft 10ã«ãªããç¾å¨ãChrome 13ã¯draft 76ã§å®è£ ããã¦ããdraft 76ã¨draft 10ã¯äºææ§ããªããWebSocketã使ã£ãæ¢åã®ãµã¼ãã¹ã¯å£ããã®ã§draft 10ã§å®è£ ãããWebSocketServerãæ¢ãã¨ãã®æ å ±ãã¾ã¨ããã â New WebSocket Protocol: Secure and Extensible Please note that the new protocol is incompatible with one which Chromium previously supported (draft-ietf-hybi-thewebsocketprotocol-00), so existing WebSocket-based services may break.
Google Chromeã®ããªã§ new WebSocket() ã¨ãã¦ãå ¨ãåãæ°é ãç¡ããã°ã°ã£ã¦ããã¾ãæ å ±ãåºã¦ããªãã£ãã®ã§ãå°å³ã«æãããã¾ããã Firefoxã®NightlyçãAuroraçã§WebSocketã使ç¨ããå ´åã¯ãã¬ãã£ãã¯ã¹ãä»ããå¿ è¦ãããããã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}