{"_id":"phoenix-channels","_rev":"2-eaf125025cd420d85205ca84e6e03208","name":"phoenix-channels","description":"Phoenix Channels Client","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"phoenix-channels","version":"1.0.0","description":"Phoenix Channels Client","main":"src/index.js","scripts":{"mocha":"mocha ./test/**/*.js --compilers js:babel-register -r jsdom-global/register","lint":"eslint ./src","test":"npm run lint && npm run mocha"},"repository":{"type":"git","url":"git+ssh://git@github.com/mcampa/phoenix-client.git"},"author":{"name":"Chris McCord","email":"chris@chrismccord.com","url":"http://www.phoenixframework.org"},"license":"MIT","bugs":{"url":"https://github.com/mcampa/phoenix-client/issues"},"homepage":"https://github.com/mcampa/phoenix-client#readme","dependencies":{"websocket":"^1.0.24"},"devDependencies":{"babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","eslint":"^3.19.0","jsdom":"9.8.3","jsdom-global":"2.1.0","mocha":"~2.4.4","mock-socket":"^6.0.1","sinon":"^1.17.6"},"gitHead":"72b20dcc5c997fd830c0f5ee607e5eeaf4d2684e","_id":"phoenix-channels@1.0.0","_shasum":"4de3a7a3427483deffc4908d8fecac725db06d6a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"mcampa","email":"mcampa@gmail.com"},"dist":{"shasum":"4de3a7a3427483deffc4908d8fecac725db06d6a","tarball":"https://registry.npmjs.org/phoenix-channels/-/phoenix-channels-1.0.0.tgz","integrity":"sha512-NVanumwkjzxUptGKBAMQ1W9njWrJom61rNpcTvSho9Hs441Lv8AJElXdkbycX9fFccc6OJViVLhDL0L5U/HqMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHXhl7WbqZ0Op/0EO8cVaTZ4sJ12eeH7dKH14GcrwuGNAiEA7rnQIxcsBzceGEQ8SkT5mDM3ZASMSxkJdjMQ1F/T9w8="}]},"maintainers":[{"name":"mcampa","email":"mcampa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phoenix-channels-1.0.0.tgz_1496114253830_0.32837541145272553"}}},"readme":"# Phoenix Channels Client\nThis is the Node.js client. If you need a client for the browser use [phoenix](https://www.npmjs.com/package/phoenix)\n\nThe differece with the original client is that this does not use long-polling and you need to pass the absolute url instead of the relative url.\n\n# Usage\nThis uses the same API as the original [phoenix](https://www.npmjs.com/package/phoenix) except that it needs an absolute url\n```javascript\nconst { Socket } = require('phoenix-channels')\n\nlet socket = new Socket(\"ws://example.com/socket\")\n\nsocket.connect()\n\n// Now that you are connected, you can join channels with a topic:\nlet channel = socket.channel(\"room:lobby\", {})\nchannel.join()\n  .receive(\"ok\", resp => { console.log(\"Joined successfully\", resp) })\n  .receive(\"error\", resp => { console.log(\"Unable to join\", resp) })\n```\n\n`Presence` is also available\n\n# Installation\n`npm install --save phoenix-channels`\n\n# Authors\nAPI was made by authors of the [Phoenix Framework](http://www.phoenixframework.org/)\n- see their website for complete list of authors.\n\nPorted to Node.js by Mario Campa\n\n# License\n\nThe same as [Phoenix Framework](http://www.phoenixframework.org/) (MIT)","maintainers":[{"name":"mcampa","email":"mcampa@gmail.com"}],"time":{"modified":"2022-06-23T21:16:25.391Z","created":"2017-05-30T03:17:33.922Z","1.0.0":"2017-05-30T03:17:33.922Z"},"homepage":"https://github.com/mcampa/phoenix-client#readme","repository":{"type":"git","url":"git+ssh://git@github.com/mcampa/phoenix-client.git"},"author":{"name":"Chris McCord","email":"chris@chrismccord.com","url":"http://www.phoenixframework.org"},"bugs":{"url":"https://github.com/mcampa/phoenix-client/issues"},"license":"MIT","readmeFilename":"README.md"}