{"id":5168,"date":"2014-03-31T02:48:01","date_gmt":"2014-03-30T17:48:01","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=5168"},"modified":"2014-03-31T03:00:35","modified_gmt":"2014-03-30T18:00:35","slug":"%e8%a9%b1%e9%a1%8c%e3%81%aenode-js%e3%81%a7-%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0-pvp%ef%bc%88%e3%83%97%e3%83%ac%e3%82%a4%e3%83%a4%e3%83%bc%e5%90%8c%e5%a3%ab%e3%83%90%e3%83%88","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=5168","title":{"rendered":"\u8a71\u984c\u306enode.js\u3067 \u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 PvP\uff08\u30d7\u30ec\u30a4\u30e4\u30fc\u540c\u58eb\u30d0\u30c8\u30eb\uff09\u30a2\u30d7\u30ea\u4f5c\u6210 \u5b9f\u88c5\u89e3\u8aac node.js + socket.io + Express"},"content":{"rendered":"<p>\u6700\u8fd1\u3001\u4f55\u304b\u3068node.js\u3092\u6271\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3044\u3084\u3041\u3002\u9762\u767d\u3044\u3002<\/p>\n<p>WebSocket\u3092\u3088\u308a\u7c21\u5358\u306b\u6271\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u300c<strong>socket.io\u300d<\/strong>\u3084<\/p>\n<p>web\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e<strong>\u300cExpress\u300d<\/strong>\u7b49\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u66f4\u306b\u3088\u308a\u7c21\u5358\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>socket.io\u300d<\/strong>\u3084<strong>\u300cExpress\u300d<\/strong>\u306e\u5b9f\u88c5\u65b9\u6cd5\u306a\u3069\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u305f\u3044\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>web\u4e0a\u3084\u66f8\u7c4d\u7b49\u3067\u3088\u304f\u3001<strong>\u300c\u30c1\u30e3\u30c3\u30c8\u30b7\u30b9\u30c6\u30e0\u300d\u7b49<\/strong>\u306e\u4f5c\u6210\u65b9\u6cd5\u7b49\u304c\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001<\/p>\n<p>\u305d\u308c\u3068\u306f\u9055\u3063\u305f <strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b2\u30fc\u30e0<\/strong>\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u304b\u3001\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0PvP \uff08Player VS Player\uff09\u306e\u5b9f\u88c5<\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<\/p>\n<p>\u4e16\u754c\u7684\u306b\u3082\u3063\u3068\u3082\u6709\u540d\u306aPvP\u30d0\u30c8\u30eb\u3068\u3057\u3066\u77e5\u3089\u308c\u308b<\/p>\n<p><strong>\u300c\u3058\u3083\u3093\u3051\u3093\u300d<\/strong>\u3092node.js\u3067\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p>\u4f55\u306f\u3068\u3082\u3042\u308c\u3001youtube \u3068\u30c7\u30e2\u3092UP\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u898b\u3066\u6271\u3063\u3066\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/x4tQVNpRKRU\" frameborder=\"0\" width=\"420\" height=\"315\"><\/iframe><\/p>\n<p><a href=\"http:\/\/153.121.36.251:3000\" target=\"_blank\"><strong><strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0PvP\u30d0\u30c8\u30eb \u300c\u3058\u3083\u3093\u3051\u3093\u30d0\u30c8\u30eb\u300d<\/strong>\u30c7\u30e2<\/strong><\/a><\/p>\n<p><a href=\"http:\/\/153.121.36.251:3000\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 6.59.40\" width=\"324\" height=\"311\" class=\"alignnone size-full wp-image-5266\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a.png 324w, https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a-300x287.png 300w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><\/a><\/p>\n<h4>\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8<\/h4>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/Flowchart.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/Flowchart.png\" title=\"Flowchart\" width=\"298\" height=\"471\" class=\"alignnone  wp-image-5272\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/Flowchart.png 373w, https:\/\/www.webcyou.com\/wp-content\/uploads\/Flowchart-189x300.png 189w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/a><\/p>\n<p>\u7c21\u5358\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3092\u4f5c\u308b\u969b\u306f \u00a0WEB\u30c9\u30ed\u30fc\u30c4\u30fc\u30eb\u3067\u3042\u308b\u300cCacoo\u300d\u7b49\u3001\u30ef\u30a4\u30e4\u30fc\u30d5\u30ec\u30fc\u30e0\u4f5c\u6210Web\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><strong>cacoo<\/strong><\/p>\n<p><a href=\"https:\/\/cacoo.com\/\" target=\"_blank\">https:\/\/cacoo.com\/<\/a><\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d6d59f94439c735a3631383b734753df.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d6d59f94439c735a3631383b734753df.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 16.03.19\" width=\"177\" height=\"47\" class=\"alignnone size-full wp-image-5277\" \/><\/a><\/p>\n<p>\u4eca\u56de\u306fCacoo\u3092\u4f7f\u3063\u3066\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3092\u4f5c\u6210\u3002<\/p>\n<h4>\u30c7\u30b6\u30a4\u30f3<\/h4>\n<h5>TOP\u753b\u9762<\/h5>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a1.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 6.59.40\" width=\"259\" height=\"249\" class=\"alignnone  wp-image-5268\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a1.png 324w, https:\/\/www.webcyou.com\/wp-content\/uploads\/18376b72b95bb5c7de8a6ec03c9aff4a1-300x287.png 300w\" sizes=\"auto, (max-width: 259px) 100vw, 259px\" \/><\/a><\/p>\n<p>\u3058\u3083\u3093\u3051\u3093\u30d0\u30c8\u30eb\u306etop\u753b\u9762\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30c8\u30eb\u30b9\u30bf\u30fc\u30c8\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u30d0\u30c8\u30eb\u30e1\u30a4\u30f3\u753b\u9762\u306b\u9077\u79fb\u3057\u3001\u30d0\u30c8\u30eb\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<h5>\u5bfe\u6226\u76f8\u624b\u5f85\u3061<\/h5>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d33df09484878fd07618738229d4778b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d33df09484878fd07618738229d4778b.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 7.25.55\" width=\"278\" height=\"257\" class=\"alignnone  wp-image-5270\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d33df09484878fd07618738229d4778b.png 347w, https:\/\/www.webcyou.com\/wp-content\/uploads\/d33df09484878fd07618738229d4778b-300x277.png 300w\" sizes=\"auto, (max-width: 278px) 100vw, 278px\" \/><\/a><\/p>\n<p>\u30d0\u30c8\u30eb\u30e1\u30a4\u30f3\u753b\u9762\u306b\u8ab0\u3082\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4e0a\u8a18\u306e\u5f85\u6a5f\u72b6\u614b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u969b\u3001\u8ab0\u304b\u304c\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u30d0\u30c8\u30eb\u304c\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<h5>\u3058\u3083\u3093\u3051\u3093\u958b\u59cb\uff08\u30e1\u30a4\u30f3\u753b\u9762\uff09<\/h5>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6c8928a4035f5cdbc71b49a99678aeab.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6c8928a4035f5cdbc71b49a99678aeab.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 7.24.32\" width=\"289\" height=\"260\" class=\"alignnone  wp-image-5269\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6c8928a4035f5cdbc71b49a99678aeab.png 361w, https:\/\/www.webcyou.com\/wp-content\/uploads\/6c8928a4035f5cdbc71b49a99678aeab-300x270.png 300w\" sizes=\"auto, (max-width: 289px) 100vw, 289px\" \/><\/a><\/p>\n<p>\u30d0\u30c8\u30eb\u30e1\u30a4\u30f3\u753b\u9762\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u306e3\u3064\u306e\u624b\u304b\u3089\u51fa\u3059\u624b\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u753b\u9762\u4e0a\u306f\u9078\u629e\u3057\u305f\u624b\u3092\u8868\u793a\u3059\u308b\u30a8\u30ea\u30a2\u3067\u3059\u3002<\/p>\n<p>\u76f8\u624b\u306e\u624b\u306f\u9078\u629e\u3057\u305f\u304b\u3001\u672a\u3060\u304b\u306e\u307f\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<h5>\u7d50\u679c\u753b\u9762<\/h5>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/90a2b8874aa07125380015baab9312cc.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/90a2b8874aa07125380015baab9312cc.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 7.24.42\" width=\"282\" height=\"228\" class=\"alignnone  wp-image-5271\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/90a2b8874aa07125380015baab9312cc.png 353w, https:\/\/www.webcyou.com\/wp-content\/uploads\/90a2b8874aa07125380015baab9312cc-300x242.png 300w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><\/a><\/p>\n<p>2\u4eba\u624b\u3092\u9078\u629e\u3059\u308b\u304b\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u3068\u7d50\u679c\u753b\u9762\u3078\u3068\u9077\u79fb\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cTOP\u3078\u623b\u308b\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u306b\u3088\u3063\u3066TOP\u753b\u9762\u3078\u3068\u623b\u308a\u307e\u3059\u3002<\/p>\n<h4>socket.io<\/h4>\n<p>\u3067\u306f\u65e9\u901f\u3001scoket.io\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u3082\u305d\u3082node.js\u3063\u3066\u306a\u3093\u3060\u3088\uff1f\u3063\u3066\u65b9\u306f\u3053\u3061\u3089\u7b49\u3092\u53c2\u7167\u3057\u3066\u9802\u3051\u308c\u3070\u3068\u3002<\/p>\n<h3><a href=\"https:\/\/www.webcyou.com\/?p=4149\">\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9Javascript \u300enode.js\u300f mac\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u4f7f\u7528\u65b9\u6cd5<\/a><\/h3>\n<p>npm\u3092\u5229\u7528\u3057\u3066\u69d8\u3005\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u3044\u304f\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30b0\u30ed\u30fc\u30d0\u30eb\u9818\u57df\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install \u30e2\u30b8\u30e5\u30fc\u30eb\u540d<\/pre>\n<p>\u4e0a\u8a18\u306e npm\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059.<\/p>\n<p>\u73fe\u5728\u306e\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e node_modules \u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u969b\u3001<\/p>\n<p>.\/node_modules, ..\/node_modules, ..\/..\/node_modules \u3068\u3044\u3046\u9806\u756a\u306b\u63a2\u3057\u3066\u3001\u6700\u521d\u306b\u898b\u3064\u3051\u305f\u5834\u6240\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u9061\u3063\u3066node_modules\u304c\u898b\u3064\u304b\u3089\u306a\u3051\u308c\u3070\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bnode_modules\u3092\u4f5c\u3063\u3066\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><\/pre>\n<h5>\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5168\u3066\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5171\u901a\u3067\u4f7f\u3044\u305f\u3044\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306b\u4f7f\u3044\u307e\u3059\u3002 \u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u306b -g \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002 \u307e\u305f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30d1\u30b9\u304c\u901a\u308a\u3001 coffeescript \u3084 mocha \u3092\u76f4\u63a5\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u5b9f\u884c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install -g \u30e2\u30b8\u30e5\u30fc\u30eb\u540d<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001socket.io\u306b\u95a2\u3057\u3066\u306a\u3093\u3067\u3059\u304c\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u3084Github\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u4ee5\u4e0b\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<br \/><strong>socket.io\u00a0\u516c\u5f0f\u30b5\u30a4\u30c8<\/strong><\/p>\n<p><a href=\"http:\/\/socket.io\" target=\"_blank\">http:\/\/socket.io<\/a><\/p>\n<p><strong>Github<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/learnboost\/socket.io\" target=\"_blank\">https:\/\/github.com\/learnboost\/socket.io<\/a><\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/aa4313314a26f612def4f9a2cdc5b30a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/aa4313314a26f612def4f9a2cdc5b30a.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 7.39.38\" width=\"459\" height=\"171\" class=\"alignnone  wp-image-5273\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/aa4313314a26f612def4f9a2cdc5b30a.png 574w, https:\/\/www.webcyou.com\/wp-content\/uploads\/aa4313314a26f612def4f9a2cdc5b30a-300x111.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/a><\/p>\n<p><strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install socket.io<\/pre>\n<p><strong>npm \u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30af\u3063\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u3093\u3067\u3001<strong>sockets.io<\/strong>\u3068\u306f\u306a\u3093\u305e\u3084\uff1f<\/p>\n<p>\u3066\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u3082\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001<\/p>\n<p><strong>\u300cSocket.IO<\/strong>\u00a0\u306f\u8907\u6570\u306e\u901a\u4fe1\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u62bd\u8c61\u5316\u3059\u308b\u3053\u3068\u3067\u3001 \u5168\u3066\u306e\u30d6\u30e9\u30a6\u30b6\u3001\u30c7\u30d0\u30a4\u30b9\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30a2\u30d7\u30ea\u3092\u5b9f\u88c5\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002 \u3068\u3066\u3082\u624b\u8efd\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u30a2\u30d7\u30ea\u3092 100% JavaScript \u3067\u4f5c\u6210\u53ef\u80fd\u3067\u3059\u3002\u300d<\/p>\n<p>\u305d\u3046\u3002<strong>\u6c17\u8efd\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u30a2\u30d7\u30ea\u3092100%Javascript<\/strong>\u3067\u4f5c\u6210\u304c\u53ef\u80fd\u306a\u306e\u3067\u3059\uff01<\/p>\n<p>\u7c21\u5358\u306b\u8aac\u660e\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3068\u3001<\/p>\n<p>\u901a\u4fe1\u306e\u65b9\u6cd5\u3068\u3057\u3066\u3001\u5b9a\u671f\u7684\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b<strong>\u300c\u30dd\u30fc\u30ea\u30f3\u30b0\u300d<\/strong>\u3001\u66f4\u306b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u6642\u9593\u3092\u4f38\u3070\u3057\u9577\u6642\u9593\u306b\u6e21\u3063\u3066\u65ad\u7d9a\u7684\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1\u3059\u308b<strong>\u300c\u30ed\u30f3\u30b0\u30dd\u30fc\u30ea\u30f3\u30b0\u300d<\/strong>\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u306e\u65b9\u6cd5\u3067\u306f<strong>\u53cc\u65b9\u5411\u304b\u3064\u975e\u540c\u671f\u3067\u306e\u5b8c\u74a7\u306a\u901a\u4fe1\u306f\u5b9f\u73fe\u3067\u304d\u307e\u305b\u3093<\/strong>\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u30672011\u5e74\u306b\u63d0\u6848\u3055\u308c\u305f\u306e\u304c\u3001<strong>\u53cc\u65b9\u5411\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u300cWebSocket\u300d<\/strong>\u3067\u3059\u3002<\/p>\n<p><strong>\u300cWebSocket\u300d<\/strong>\u3067\u306f\u72ec\u81ea\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001<strong>\u975e\u540c\u671f\u304b\u3064\u53cc\u65b9\u5411\u306e\u901a\u4fe1\u3092\u53ef\u80fd<\/strong>\u3068\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u304c\u3001<strong>\u300cWebSocket\u300d<\/strong>\u306f<strong>\u6bd4\u8f03\u7684\u65b0\u3057\u3044Web\u30d6\u30e9\u30a6\u30b6\u306e\u307f\u306e\u30b5\u30dd\u30fc\u30c8<\/strong>\u3068\u306a\u308a\u3001IE9\u4ee5\u524d\u3084\u30b9\u30de\u30db\u3001\u30bf\u30d6\u30ec\u30c3\u30c8\u7b49\u306b\u642d\u8f09\u3055\u308c\u3066\u3044\u308b<strong>\u4e00\u90e8\u306eweb\u30d6\u30e9\u30a6\u30b6\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/strong><\/p>\n<p>\u305d\u308c\u4ee5\u5916\u306e\u65b9\u6cd5\u3068\u3057\u3066\u3001Adobe Flash Player\u306b\u3082\u30bd\u30b1\u30c3\u30c8\uff08Socket API\uff09\u306e\u6a5f\u80fd\u304c\u3042\u308a\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u53cc\u65b9\u5411\u306e\u975e\u540c\u671f\u901a\u4fe1\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3082\u307e\u305f\u3001\u304a\u4e92\u3044 web\u30d6\u30e9\u30a6\u30b6\u3067Flash\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5229\u7528\u3067\u304d\u308b\u74b0\u5883\u3067\u306f\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002\u3068\u3044\u3063\u305f\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3044\u3063\u305f\u5236\u9650\u306e\u3042\u308b<strong>\u53cc\u65b9\u5411\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u300cWebsocket\u300d<\/strong>\u3067\u3059\u304c\u3001\u300c<strong>Socket.IO\u300d<\/strong>\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001<strong>\u958b\u767a\u8005\u3082\u5229\u7528\u8005\u3082\u63a5\u7d9a\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8003\u616e\u305b\u305a\u3001\u5bb9\u6613\u306b\u53cc\u65b9\u5411\u901a\u4fe1\u304c\u884c\u3048\u308b<\/strong>\u69d8\u306b\u306a\u308b\u3002<\/p>\n<p>\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h4>Express<\/h4>\n<p>Express\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u8a73\u7d30\u306f\u3053\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3><a href=\"https:\/\/www.webcyou.com\/?p=4160\">\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9Javascript node.js express\u3084\u3089npm\u3084\u3089<\/a><\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install -g express<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">express app<\/pre>\n<p>express\u30b3\u30de\u30f3\u30c9\u3067app\u3068\u3044\u3046\u540d\u524d\u306e\u30a2\u30bb\u30c3\u30c8\u3092\u751f\u6210\u3057\u3066\u3044\u304f\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u751f\u6210\u3059\u308b\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u306fjade\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d8f2a793fb8defadf4ef29a46c229632.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d8f2a793fb8defadf4ef29a46c229632.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 15.46.59\" width=\"207\" height=\"232\" class=\"alignnone size-full wp-image-5275\" \/><\/a><\/p>\n<p>\u4eca\u56de\u306fect\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3059\u308b\u306e\u3067\u3059\u304c\u3001ect\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u672a\u3060\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001<\/p>\n<p>ejs\u3068\u4f7f\u7528\u65b9\u6cd5\u304c\u8fd1\u3044\u305f\u3081\u3001\u4e00\u65e6ejs\u3067\u751f\u6210\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">express app --ejs<\/pre>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6d62ec6d7ad26282bdf15f0aea3405b2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6d62ec6d7ad26282bdf15f0aea3405b2.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-30 15.52.40\" width=\"171\" height=\"83\" class=\"alignnone size-full wp-image-5276\" \/><\/a><\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306eviews\u304c index.ejs\u3067\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>ECT Javascript \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u3055\u3066\u3001ect\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u307e\u3059\u306e\u3067\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3067\u3042\u308bect\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001<strong>package.json\u3092<\/strong>\u4fee\u6b63\u3002<\/p>\n<p>&#8220;ejs&#8221;\u306e\u90e8\u5206\u3092 &#8220;ect&#8221;: &#8220;*&#8221;\u306b\u5909\u66f4\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">{\r\n  \"name\": \"application-name\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"start\": \"node app.js\"\r\n  },\r\n  \"dependencies\": {\r\n    \"express\": \"3.5.0\",\r\n    \"ect\": \"*\",\r\n    \"socket.io\": \"*\"\r\n  }\r\n}<\/pre>\n<p>npm\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install<\/pre>\n<p>\u3092\u884c\u3046\u3068\u3001<strong>\u300cnode_modules\u300d\u5185\u306b<\/strong><strong>ect<\/strong>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u500b\u5225\u306e\u6307\u5b9a\u3092\u884c\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install ect<\/pre>\n<p>ECT\u306b\u95a2\u3057\u3066\u306e\u8a73\u7d30\u306f<\/p>\n<h3><a href=\"https:\/\/www.webcyou.com\/?p=5173\">node.js \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3 ECT\u304c\u7206\u901f!! \u3089\u3057\u3044\u4ef6\uff08ect\u306e\u4f7f\u3044\u65b9\uff09<\/a><\/h3>\n<p>\u3092\u53c2\u7167\u3057\u3066\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4fee\u6b63\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<strong>app.js<\/strong> \u3092\u4fee\u6b63\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/954bd14bb393da97086fe0185c7a3f49.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/954bd14bb393da97086fe0185c7a3f49.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-31 0.38.44\" width=\"175\" height=\"78\" class=\"alignnone size-full wp-image-5279\" \/><\/a><\/p>\n<p>ect\u3092\u4f7f\u3063\u3066\u3044\u304d\u307e\u3059\u306e\u3067 require\u3067ect\u3092\u8aad\u307f\u8fbc\u307f\u3001ect\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var ECT = require('ect');\r\napp.engine('ect', ECT({ watch: true, root: __dirname + '\/views', ext: '.ect' }).render);\r\napp.set('view engine', 'ect');<\/pre>\n<p>\u8a73\u7d30\u306f<\/p>\n<h3><a href=\"https:\/\/www.webcyou.com\/?p=5173\">node.js \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3 ECT\u304c\u7206\u901f!! \u3089\u3057\u3044\u4ef6\uff08ect\u306e\u4f7f\u3044\u65b9\uff09<\/a><\/h3>\n<p>\u306b\u3082\u8a18\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>index.ejs\u3092index.ect\u306b\u5909\u66f4\u3057<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/71079416324cc0981d7e4f6c3f9da5fb.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/71079416324cc0981d7e4f6c3f9da5fb.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-16 9.38.05\" width=\"139\" height=\"46\" class=\"alignnone size-full wp-image-5181\" \/><\/a><\/p>\n<p>index.ejs\u3092\u4fee\u6b63\u3002<\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u306f@\u4ed8\u4e0e\u306a\u306e\u3067\u4ee5\u4e0b\u306e\u69d8\u306b\u4fee\u6b63\u3002<\/p>\n<p>&lt;%= title %&gt;<\/p>\n<p>\u2193<\/p>\n<p>&lt;%= @title %&gt;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">node app.js<\/pre>\n<p>\u3067\u304d\u3061\u3093\u3068\u8d77\u52d5\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4><strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020<\/strong><\/h4>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/c8e5de3d7284e9fcda76be410cf2a8c5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/c8e5de3d7284e9fcda76be410cf2a8c5.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-31 0.54.37\" width=\"200\" height=\"335\" class=\"alignnone  wp-image-5280\" \/><\/a><\/p>\n<p><strong>node_modules<\/strong> \uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f node\u30e2\u30b8\u30e5\u30fc\u30eb\uff09<\/p>\n<p>\u00a0 |- .bin<\/p>\n<p>\u00a0 |- ect<\/p>\n<p>\u00a0 |- express<\/p>\n<p>\u00a0 |- socket.io<\/p>\n<p><strong>public<\/strong> \uff08express\u3067\u751f\u6210\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\uff09<\/p>\n<p>\u00a0 |- css<\/p>\n<p>\u00a0 |- img<\/p>\n<p>\u00a0 |- js<\/p>\n<p>\u00a0 |- scss<\/p>\n<p><strong>routes<\/strong> \uff08\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u884c\u3046js\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\uff09<\/p>\n<p>index.js<\/p>\n<p><strong>sockets<\/strong>\uff08\u30b5\u30fc\u30d0\u30fc\u5074 js\uff09<\/p>\n<p>server.js<\/p>\n<p><strong>views <\/strong>\uff08ECT\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\uff09<\/p>\n<p>\u00a0 |- battle.ect \uff08\u30d0\u30c8\u30eb\u30e1\u30a4\u30f3\u753b\u9762\uff09<\/p>\n<p>\u00a0 |- index.ect \uff08top\u753b\u9762\uff09<\/p>\n<p>\u00a0 |- layout.ect \uff08\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\uff09<\/p>\n<p>\u00a0 |- result.ect \uff08\u30d0\u30c8\u30eb\u7d50\u679c\u753b\u9762\uff09<\/p>\n<h4>Github<\/h4>\n<p>\u30bd\u30fc\u30b9\u306fGithub\u306e<a href=\"https:\/\/github.com\/webcyou\/sample\" target=\"_blank\">sample<\/a> \u30ec\u30dd\u30b8\u30c8\u30ea\u5185\u306b\u516c\u958b\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3054\u81ea\u7531\u306b\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>Github<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/webcyou\/sample\/tree\/master\/node\/pvp\/app\" target=\"_blank\">https:\/\/github.com\/webcyou\/sample\/tree\/master\/node\/pvp\/app<\/a><\/p>\n<h4>routes\/index.js \u30fb server.js\u30fb battle.js<\/h4>\n<p>views\u4ee5\u4e0b\uff08html,css,img\uff09\u306e\u8aac\u660e\u306f\u7701\u7565\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exports.index = function(req, res) {\u00a0 \u00a0 res.render('index', { title: 'Node.js PvP \u3058\u3083\u3093\u3051\u3093' });};<\/pre>\n<p>top\u753b\u9762\u3067\u3042\u308b\u3001exports.index\u301c \u3067\u306f\u3001index\u3092\u53e9\u3044\u305f\u6642\u306b\u547c\u3073\u51fa\u3059\u51e6\u7406\u3092\u884c\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u5834\u5408\u3067\u3059\u3068 title:\u00a0\u00a0&#8216;Node.js PvP \u3058\u3083\u3093\u3051\u3093&#8217; \u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u6642\u306b\u53d7\u6e21\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4e0b\u306b\u8a18\u8ff0\u3057\u3066\u3044\u308b\u30d0\u30c8\u30eb\u30e1\u30a4\u30f3\u306e\u753b\u9762\u306b\u306a\u308b\u3001exports.battle \u301c\u3067\u306f\u3001roomName\u3001yourName\u3092\u751f\u6210\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>yourName\u306f\u30e9\u30f3\u30c0\u30e0\u306e\u6570\u5b57\u3092\u4ed8\u4e0e\u3057\u3066\u751f\u6210\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var roomName = 'battleRoom',\r\nyourName = 'user' + Math.floor(Math.random() * 100)<\/pre>\n<p>\u7d50\u679c\u753b\u9762\u3067\u3042\u308b\u3001exports.result \u301c\u3000\u3067\u306f\u3001<\/p>\n<p>get\u3067\u53d7\u3051\u53d6\u3063\u305frequest\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u6642\u306bbattleResult\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u53d7\u6e21\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var battleResult = req.query.result<\/pre>\n<h5>server.js<\/h5>\n<p>\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u51e6\u7406\u306b\u3042\u305f\u308b\u3001server.js\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var battleCount = 0,\r\nroomCount = 1;<\/pre>\n<p>battleCount\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u4f55\u4eba\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3001roomCount\u306f\u30d0\u30c8\u30eb\u306e\u90e8\u5c4b\u306e\u6570\u3068\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exports.onConnection = function (socket) { <\/pre>\n<p>\u306f\u30bd\u30b1\u30c3\u30c8\u304c\u63a5\u7d9a\u3055\u308c\u305f\u969b\u306b\u5b9f\u884c\u3055\u308c\u308b\u51e6\u7406\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">socket.emit();<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">socket.on();<\/pre>\n<p>\u7b49\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u306f\u4ee5\u4e0b\u306e\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>addListener(event, listener)<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u767b\u9332<\/td>\n<\/tr>\n<tr>\n<td>on(event, listener)<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u767b\u9332\uff08addListener\u30e1\u30bd\u30c3\u30c9\u306e\u5225\u540d\uff09<\/td>\n<\/tr>\n<tr>\n<td>once(event, listener)<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u306b\u4e00\u5ea6\u3060\u3051\u5b9f\u884c\u3055\u308c\u308b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u767b\u9332\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>removeListener(event, listener)<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u524a\u9664\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>removeAllListener([event])<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u5168\u3066\u524a\u9664\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>setMaxListeners(n)<\/td>\n<td>\u767b\u9332\u3067\u304d\u308b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30fc\u6570\u306e\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b\u3002n\u5f15\u6570\u306b\u306f\u6574\u6570\u3067\u4e0a\u9650\u6570\u3092\u6307\u5b9a\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>listeners(event)<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u53d6\u5f97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>emit(event,[arg1],[arg2],&#8230;)<\/td>\n<td>\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u751f\u3055\u305b\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>on\u3067\u767b\u9332\u3057\u3001emit\u3067\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>server.js\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u5404\u30a4\u30d9\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>check credential<\/td>\n<td>\u8a8d\u8a3c\u60c5\u5831\u306e\u78ba\u8a8d<\/td>\n<\/tr>\n<tr>\n<td>disconnect<\/td>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u63a5\u7d9a\u304c\u5207\u65ad\u3055\u308c\u305f\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>setHand<\/td>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u9078\u629e\u3055\u308c\u305f\u624b\u3092\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u4fdd\u5b58<\/td>\n<\/tr>\n<tr>\n<td>getEnemyData<\/td>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u9078\u629e\u3055\u308c\u305f\u76f8\u624b\u306e\u624b\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3001\u81ea\u5206\u306e\u65b9\u306b\u60c5\u5831\u3092\u9001\u4fe1<\/td>\n<\/tr>\n<tr>\n<td>battleTimeout<\/td>\n<td>\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u6642\u306b\u624b\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/td>\n<\/tr>\n<tr>\n<td>battleReset<\/td>\n<td>\u3042\u3044\u3053\u306e\u5834\u5408\u3001\u518d\u6226\u3068\u306a\u308b\u305f\u3081\u30d0\u30c8\u30eb\u30c7\u30fc\u30bf\u3092\u30ea\u30bb\u30c3\u30c8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>battle.js<\/h5>\n<p>public\/js\/ \u5185\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b battle.js\u304c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306eJavascript\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u3067\u3042\u308b\u300cbattleControler\u300d\u304c\u30e6\u30fc\u30b6\u30fc\u5074\u306e\u30a4\u30d9\u30f3\u30c8\u7b49\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u308bscript\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>targetElem\u306fdom\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001battleData\u306f\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>socket\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30a4\u30d9\u30f3\u30c8\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>connected<\/td>\n<td>\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a\u304c\u5b8c\u4e86\u3057\u305f\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>credential ok<\/td>\n<td>\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u554f\u984c\u306a\u3044\u5834\u5408\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>userName exists<\/td>\n<td>\u540c\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u751f\u6210\u3057\u305f\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>battle wait<\/td>\n<td>\u76f8\u624b\u304c\u3044\u306a\u3044\u5834\u5408\u306e\u5f85\u6a5f\u72b6\u614b\u306e\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>battle start<\/td>\n<td>\u6761\u4ef6\u304c\u63c3\u3044\u30d0\u30c8\u30eb\u958b\u59cb\u51fa\u6765\u308b\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>battle judge<\/td>\n<td>\u30d0\u30c8\u30eb\u306e\u30b8\u30e3\u30c3\u30b8\u3092\u884c\u3046\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>battle timeout<\/td>\n<td>\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u6642\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>update members<\/td>\n<td>\u9000\u51fa\u3001\u5165\u5ba4\u6642\u306b\u767a\u751f<\/td>\n<\/tr>\n<tr>\n<td>getStatus<\/td>\n<td>\u76f8\u624b\u306e\u60c5\u5831\u304c\u5c4a\u3044\u305f\u969b\u306b\u767a\u751f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>battleControler\u306e\u51e6\u7406<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>init<\/td>\n<td>\u521d\u671f\u5316<\/td>\n<\/tr>\n<tr>\n<td>battleStart<\/td>\n<td>\u30d0\u30c8\u30eb\u958b\u59cb\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>battleReset<\/td>\n<td>\u30d0\u30c8\u30eb\u30c7\u30fc\u30bf\u30ea\u30bb\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td>battleReStart<\/td>\n<td>\u30d0\u30c8\u30eb\u518d\u958b<\/td>\n<\/tr>\n<tr>\n<td>timeCount<\/td>\n<td>\u30bf\u30a4\u30e0\u30ab\u30a6\u30f3\u30c8\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>commandSet<\/td>\n<td>\u624b\u3092\u9078\u629e\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>enemySet<\/td>\n<td>\u76f8\u624b\u306e\u60c5\u5831\u30bb\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td>judge<\/td>\n<td>\u30d0\u30c8\u30eb\u5224\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>battleWait<\/td>\n<td>\u5f85\u6a5f\u72b6\u614b\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>battleResult<\/td>\n<td>\u30d0\u30c8\u30eb\u7d50\u679c\u51e6\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u4f5c\u6210\u30c7\u30fc\u30bf\u30c7\u30d7\u30ed\u30a4<\/h4>\n<p>\u4eca\u56de\u306f\u3055\u304f\u3089VPS\u3092\u5229\u7528\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u901a\u5e38\u306e\u8d77\u52d5\u30b3\u30de\u30f3\u30c9<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">node app.js<\/pre>\n<p>\u3067\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u9589\u3058\u3066\u3057\u307e\u3046\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6c38\u7d9a\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>nohup\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6c38\u7d9a\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">nohup \u30b3\u30de\u30f3\u30c9 \u5f15\u6570<\/pre>\n<p>\u4f8b\uff1a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">nohup node app.js &<\/pre>\n<p>\u3053\u306e\u969b\u3001Node.js\u304b\u3089\u51fa\u529b\u306fnohup.out\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u3053\u307e\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">cat nohup.out<\/pre>\n<p>nohup\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u3066\u3044\u308bNode.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3055\u305b\u308b\u306b\u306f\u3001ps\u30b3\u30de\u30f3\u30c9\u3067\u30d7\u30ed\u30bb\u30b9\u756a\u53f7\u3092\u8abf\u3079\u3001kill\u30b3\u30de\u30f3\u30c9\u3067\u5bfe\u5fdc\u3059\u308bnode\u30d7\u30ed\u30bb\u30b9\u3092\u7d42\u4e86\u3055\u305b\u308b\u3068\u826f\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">ps ux | grep node<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">kill 55778<\/pre>\n<h4>forever<\/h4>\n<p>\u4e0a\u8a18\u306e\u65b9\u6cd5\u3060\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u969b\u30b5\u30fc\u30d3\u30b9\u304c\u505c\u6b62\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u76e3\u8996\u3057\u3001\u610f\u56f3\u3057\u306a\u3044\u7d42\u4e86\u304c\u691c\u51fa\u3055\u308c\u305f\u3089\u518d\u5ea6\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3055\u305b\u308b\u3088\u3046\u306bNode.js\u306eforever\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><strong>forever<\/strong><\/p>\n<p>forever\u306f<strong>nodejitsu\u793e<\/strong>\u304c\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u958b\u767a\u30fb\u516c\u958b\u3092\u884c\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>nodejitsu \u516c\u5f0f<\/strong><\/p>\n<p><a href=\"https:\/\/www.nodejitsu.com\" target=\"_blank\">https:\/\/www.nodejitsu.com<\/a><\/p>\n<p><strong>\u8a73\u7d30<\/strong><\/p>\n<p><a href=\"https:\/\/blog.nodejitsu.com\/keep-a-nodejs-server-up-with-forever\/\" target=\"_blank\">https:\/\/blog.nodejitsu.com\/keep-a-nodejs-server-up-with-forever\/<\/a><\/p>\n<p><strong>Github<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/nodejitsu\/forever\" target=\"_blank\">https:\/\/github.com\/nodejitsu\/forever<\/a><\/p>\n<p>npm\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">npm install -g forever<\/pre>\n<h5>forever\u306e\u4f7f\u7528\u65b9\u6cd5<\/h5>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">forever &#x5B;options] &#x5B;action] SCRIPT &#x5B;script-options]<\/pre>\n<p><strong>\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">forever start app.js<\/pre>\n<p><strong>\u5b9f\u884c\u30d7\u30ed\u30bb\u30b9\u78ba\u8a8d<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">forever list<\/pre>\n<p><strong>\u5b9f\u884c\u30d7\u30ed\u30bb\u30b9\u505c\u6b62<\/strong><\/p>\n<p>\uff08list\u3067\u5b9f\u884c\u30d7\u30ed\u30bb\u30b9\u756a\u53f7\u3092\u78ba\u8a8d\u3057\u3001\u505c\u6b62\u3057\u305f\u3044\u30d7\u30ed\u30bb\u30b9\u756a\u53f7\u3092\u5165\u529b\uff09<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">forever stop 0<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001forever\u3067\u5b9f\u884c\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30c7\u30fc\u30e2\u30f3\u3068\u3057\u3066\u5b9f\u884c\u3055\u308c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u7d42\u4e86\u3084\u30ed\u30b0\u30a2\u30a6\u30c8\u3092\u884c\u3063\u3066\u3082\u305d\u306e\u307e\u307e\u5b9f\u884c\u3092\u7d99\u7d9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u610f\u56f3\u3057\u306a\u3044\u7d42\u4e86\u304c\u691c\u51fa\u3055\u308c\u305f\u3089\u518d\u5ea6\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3068\u3001PvP\u30ea\u30a2\u30eb\u3058\u3083\u3093\u3051\u3093\u30d0\u30c8\u30eb\u306e\u5b9f\u88c5\u8a73\u7d30\u3067\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u3001\u4f55\u304b\u3068node.js\u3092\u6271\u3063\u3066\u304a\u308a\u307e\u3059\u3002 \u3044\u3084\u3041\u3002\u9762\u767d\u3044\u3002 WebSocket\u3092\u3088\u308a\u7c21\u5358\u306b\u6271\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u300csocket.io\u300d\u3084 web\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u300cExpress\u300d\u7b49\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u66f4\u306b\u3088\u308a\u7c21\u5358\u306b\u30ea\u30a2\u30eb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[177,176,166,37,47,160,45,95,39,178,138,78,114,118],"class_list":["post-5168","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-css3","tag-html5","tag-iphone","tag-iphone-","tag-javascript-2","tag-node-js","tag-web","tag-95","tag-39","tag-178","tag-138","tag-78","tag-114","tag-118"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5168"}],"version-history":[{"count":18,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5168\/revisions"}],"predecessor-version":[{"id":5290,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5168\/revisions\/5290"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}