{"_id":"d-connection","_rev":"4-69c4dc5f2e38cdb23c3c9a5c8e7eed6b","name":"d-connection","description":"A Derby JS connection component.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"author":{"name":"Dennis Torres","email":"djtorres0@gmail.com"},"bugs":{"url":"https://github.com/psirenny/d-connection/issues"},"description":"A Derby JS connection component.","keywords":["component","connection","derby","reconnect"],"license":"MIT","main":"index.js","name":"d-connection","repository":{"type":"git","url":"https://github.com/psirenny/d-connection.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.0","gitHead":"36556fc4519f8605a59f7300518893c528ed81bc","homepage":"https://github.com/psirenny/d-connection","_id":"d-connection@1.0.0","_shasum":"a4f3f89d03cc41b94b604700055e0c671a854d20","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"psirenny","email":"djtorres0@gmail.com"},"maintainers":[{"name":"psirenny","email":"djtorres0@gmail.com"}],"dist":{"shasum":"a4f3f89d03cc41b94b604700055e0c671a854d20","tarball":"https://registry.npmjs.org/d-connection/-/d-connection-1.0.0.tgz","integrity":"sha512-FDVUIabQFJHFfZmlpW0rVeLqFnCE233PTpPr1VdnwC4L/yFb0E2wcJlYXVHKTqf3elm7J/+MQt9YAVgTv5ilfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfboL0ETV3/KYQCczk/aHaplXGDoFIPv2haIsUu8HcuAiEA5vFDhrjDdvDtLMwnnew2NccB5ExuNKdUbiFN/v+Ome4="}]}}},"readme":"Derby Connection\n================\n\nA [Derby JS](http://derbyjs.com) connection component.\n\nInstallation\n------------\n\n$ npm install d-connection --save\n\nUsage\n-----\n\nCreate a view:\n\n    <index: element=\"connection\">\n      {{if #root.$connection.state === 'disconnected'}}\n      <div class=\"alert\">\n        Disconnected\n        <button class=\"btn pull-right\" disabled=\"{{reconnecting}}\">\n          {{reconnecting ? 'Reconnecting...' : 'Reconnect'}}\n        </button>\n      </div>\n      {{/}}\n\nAssociate your view with the component:\n\n    app.use('connection', require('d-connection'));\n\nUse the view:\n\n    <Body:>\n      <connection timeout=\"1500\"></connection>\n\nMethods\n-------\n\n**reconnect()** - Attempts to reconnect to the server.\n\nProperties\n----------\n\n**reconnecting** - Boolean that is set to `true` while attempting to reconnecting.\n\n**timeout** - The amount of time in milliseconds that it will wait to reconnect. Defaults to `1000`.\n","maintainers":[{"name":"psirenny","email":"djtorres0@gmail.com"}],"time":{"modified":"2022-06-14T07:25:14.898Z","created":"2014-12-11T17:12:56.291Z","1.0.0":"2014-12-11T17:12:56.291Z"},"homepage":"https://github.com/psirenny/d-connection","keywords":["component","connection","derby","reconnect"],"repository":{"type":"git","url":"https://github.com/psirenny/d-connection.git"},"author":{"name":"Dennis Torres","email":"djtorres0@gmail.com"},"bugs":{"url":"https://github.com/psirenny/d-connection/issues"},"license":"MIT","readmeFilename":"README.md"}