{"id":3891,"date":"2020-07-28T15:03:05","date_gmt":"2020-07-28T06:03:05","guid":{"rendered":"https:\/\/nantoka.filmm.info\/blog\/?p=3891"},"modified":"2020-07-28T18:10:25","modified_gmt":"2020-07-28T09:10:25","slug":"pusher%e3%83%86%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=3891","title":{"rendered":"pusher\u30c6\u30b9\u30c8"},"content":{"rendered":"<p>\u30a2\u30d7\u30ea\u5185\u30e1\u30c3\u30bb\u30f3\u30b8\u30e3\u30fc\u306e\u5236\u4f5c\u3067\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u3092\u51fa\u3059\u305f\u3081\u306b\u3044\u308d\u3044\u308d\u691c\u8a0e\u3057\u305f\u3002Node.js\u306f\u306a\u3093\u304b\u3081\u3093\u3069\u305d\u3046\u3002WebSocket\u3082\u9762\u5012\u305d\u3046\u3002<\/p>\n<p>\u3067\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u7406\u89e3\u3067\u304d\u305fpusher\u306b\u3059\u308b\u3002<\/p>\n<p>\uff1c\u30c6\u30b9\u30c8\u74b0\u5883\u306e\u69cb\u7bc9\uff1e<\/p>\n<p>Mac\u306eXAMPP\u3067PHP\u306eComposer\u304c\u3044\u308b\u3089\u3057\u3044<\/p>\n<pre class=\"lang:default decode:true \">$ composer\r\n-bash: composer: command not found<\/pre>\n<p>\u5165\u3063\u3066\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.fire-sign.info\/686\/\">https:\/\/blog.fire-sign.info\/686\/<\/a><\/p>\n<p>\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u3059\u308b<\/p>\n<pre class=\"lang:default decode:true \">$ curl -sS https:\/\/getcomposer.org\/installer | php<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u59cb\u307e\u308b<\/p>\n<pre class=\"lang:default decode:true \">ll settings correct for using Composer\r\nDownloading...\r\n\r\nComposer (version 1.10.9) successfully installed to: \/Users\/\u30e6\u30fc\u30b6\u540d\/composer.phar<\/pre>\n<p>\u3069\u3046\u3082 composer.pahr\u3000\u3092\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3044\u308c\u306a\u304d\u3083\u3089\u3057\u3044<\/p>\n<pre class=\"lang:default decode:true \">$ sudo mv composer.phar \/usr\/local\/bin\/composer<\/pre>\n<p>\u79fb\u52d5\u3067\u304d\u305f\u306e\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u30c1\u30a7\u30c3\u30af<\/p>\n<pre class=\"lang:default decode:true \">$ composer --version\r\nComposer version 1.10.9 2020-07-16 12:57:00<\/pre>\n<p>\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5165\u308a\u307e\u3057\u305f\u3068\u3055<\/p>\n<p>\u809d\u5fc3\u306epusher\u3092\u5165\u308c\u308b<\/p>\n<pre class=\"lang:default decode:true \">$ composer require pusher\/pusher-php-server\r\nUsing version ^4.1 for pusher\/pusher-php-server\r\n.\/composer.json has been updated\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nNothing to install or update\r\nGenerating autoload files<\/pre>\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u7d42\u308f\u308b\u3002<\/p>\n<p>\u3046\u307e\u304f\u3044\u304b\u306a\u3044<\/p>\n<pre class=\"lang:default decode:true \">$ sudo nano .bash_profile<\/pre>\n<p>\u3067<\/p>\n<pre class=\"lang:default decode:true \">export PATH=$PATH:\/Applications\/XAMPP\/bin<\/pre>\n<p>\u3092\u8ffd\u52a0\uff08Mac)<\/p>\n<pre class=\"lang:default decode:true \">source ~\/.bash_profile<\/pre>\n<p>\u3057\u3066\u5b9f\u884c<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a2\u30d7\u30ea\u5185\u30e1\u30c3\u30bb\u30f3\u30b8\u30e3\u30fc\u306e\u5236\u4f5c\u3067\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u3092\u51fa\u3059\u305f\u3081\u306b\u3044\u308d\u3044\u308d\u691c\u8a0e\u3057\u305f\u3002Node.js\u306f\u306a\u3093\u304b\u3081\u3093\u3069\u305d\u3046\u3002WebSocket\u3082\u9762\u5012\u305d\u3046\u3002 \u3067\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u7406\u89e3\u3067\u304d\u305fpusher\u306b\u3059\u308b\u3002 \uff1c\u30c6\u30b9\u30c8\u74b0\u5883\u306e\u69cb\u7bc9\uff1e Ma &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=3891\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">pusher\u30c6\u30b9\u30c8<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,11,23],"tags":[],"class_list":["post-3891","post","type-post","status-publish","format-standard","hentry","category-iot","category-javascript","category-php"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3891"}],"version-history":[{"count":8,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3891\/revisions"}],"predecessor-version":[{"id":3900,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3891\/revisions\/3900"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}