{"_id":"connections","_rev":"16-b471c54b5f82dfa4bce7fc283ca6e89c","name":"connections","description":"Keeps track of connections to an http server and provides a way to close connections","dist-tags":{"latest":"1.4.2"},"versions":{"0.0.1":{"name":"connections","version":"0.0.1","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","_id":"connections@0.0.1","dist":{"shasum":"eebdc2cc9ef1ba347afdb3676aa8fa9572b26f79","tarball":"https://registry.npmjs.org/connections/-/connections-0.0.1.tgz","integrity":"sha512-3ecbMs3bxX4jf+xZjVRMIyQ/YD9dKRtHFRdP9hu+FyzKkaN9TUI+ymnpKIbZRlVSMpXnAAu+d1tQpenTT42rZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhiXzgl+ByMsurKQNMtLu6Q2zWe0b4tMDWmuQBS9inZAiEAvHBzWZ9//6/ECgNxBd9foTl/9LKbPAQmRCYJQNnnsRQ="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"0.1.0":{"name":"connections","version":"0.1.0","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","_id":"connections@0.1.0","dist":{"shasum":"9ed2919acfa9e5e98114fde60c7676fb335d3dc7","tarball":"https://registry.npmjs.org/connections/-/connections-0.1.0.tgz","integrity":"sha512-POt4ogiXn67CZZ+xeGZniJECzVRiSLGhijDeJiideJ/oQIT1oFdSZnKxdsLENr7HwF5rLiyEn9MTKqsvQ3AsSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtpCR+nVwB+Yw0mpo875A7RozGL37oIyrg6wW5cNapzgIgZExMKXGRcGk/vpUzmvBrncKvzN8AAOYWF71CgUcfzPI="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"1.0.0":{"name":"connections","version":"1.0.0","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","_id":"connections@1.0.0","dist":{"shasum":"5c1a33b7f25eef6ddd2a5c4f1df32130d2f50ce2","tarball":"https://registry.npmjs.org/connections/-/connections-1.0.0.tgz","integrity":"sha512-qUbPzMfuW92ynqkcrt/IvEMLSV+EyFjLovSCzx/sIwPwi3QjlzENoSpTgQag5J2xR+5leAEBaumbv/Ra3d3eZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqvvpF7LtVDBO+0Ax69S4lxY2BeK5MZJRCABHtvkS3lQIgSqaLh1W89gG49hEW9J2c2uvO2bzbf+EpPoIZvEbtseY="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"1.1.0":{"name":"connections","version":"1.1.0","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","gitHead":"31668db14eba3500f18173dbdca0349d9af61aa0","_id":"connections@1.1.0","scripts":{},"_shasum":"cf43b6a381aa586b6472df72db5ffb3ab076abfe","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cf43b6a381aa586b6472df72db5ffb3ab076abfe","tarball":"https://registry.npmjs.org/connections/-/connections-1.1.0.tgz","integrity":"sha512-zeGa1hgjejCVaWOsL6F1DgAQ8slwVUhyxoiAyrK3+Uy5awJwmqEWS0gRQKRvWMIoZZRBzja2ScYncIznw1tJsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdDNLALg1uwSedBCQm/a2S96V/URQh4Voyf2QaLs1GiAiEAgx6sOUro6eLEVW7yFUyplSA/CjRMVVGl/a8kyBKUbzI="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/connections-1.1.0.tgz_1454960874601_0.9676480654161423"}},"1.2.0":{"name":"connections","version":"1.2.0","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","gitHead":"5e3fde0085eba7967d59156830bfdb719c297922","_id":"connections@1.2.0","scripts":{},"_shasum":"4b30ad619252744617bcb1f52c75b528c112efeb","_from":".","_npmVersion":"2.14.15","_nodeVersion":"4.2.3","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"4b30ad619252744617bcb1f52c75b528c112efeb","tarball":"https://registry.npmjs.org/connections/-/connections-1.2.0.tgz","integrity":"sha512-xMFiiBZSEHJYOd/MYuFIxJToNHwY8+VvPsJ/G5z4YekdsTUmN50NYtDEFzPq3vlnEuxCHk0MYrAw86+jQuIwfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9ildp2giLuqsvTC2VK3y/iGnY/JsVamFX2v/qPSxDPgIhAMF/aQtwi6aUZeFxMJYh3dmU66giboJ1wo7KTeArCU/Q"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/connections-1.2.0.tgz_1454961533394_0.4095609795767814"}},"1.3.0":{"name":"connections","version":"1.3.0","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","gitHead":"3cab8050e45ed8cce5aba82a3cf4c8e6d111308f","_id":"connections@1.3.0","scripts":{},"_shasum":"44963cd97d8c433cfa365e3ddc7c9914257af1c0","_from":".","_npmVersion":"2.14.15","_nodeVersion":"4.2.3","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"44963cd97d8c433cfa365e3ddc7c9914257af1c0","tarball":"https://registry.npmjs.org/connections/-/connections-1.3.0.tgz","integrity":"sha512-ld+vhqFtuqHQyaWqeCp15XfNoKR806GCyN63HPsT0oV5W+taxCCutGVxL9E6E5zDQ4uz5+/PAc/P8Zdtu2vhLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3qACoIbbSF//0gk/k32a9n6ctzMLaNu0kb6Xql94cvgIhAPk521URcSt5ZRDTT3v7edpgm3MnTMYTy+WYff8naC1u"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/connections-1.3.0.tgz_1454961754251_0.5980469295755029"}},"1.4.0":{"name":"connections","version":"1.4.0","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","gitHead":"f9a32bb2bd6b32cc2de3115b08d77f28fac16cd2","_id":"connections@1.4.0","scripts":{},"_shasum":"12f0d7746f5238823d816df5ab43ad004d9b4a29","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"12f0d7746f5238823d816df5ab43ad004d9b4a29","tarball":"https://registry.npmjs.org/connections/-/connections-1.4.0.tgz","integrity":"sha512-jwhznsxGz1Wzc20wQZq9baq5JNcHSZ8hmuLT9H/WrqPm0Fj8iZmnLbXeRBKGJ+cVvSWOx6msP/gqMaeH085www==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAS0ueQHBMleIxlItjnW+aTFPFs+akFTs1GGSmMJ3fcwAiEA2qtp+MPNlJIx/nQXWT7nll/QJuS0PCX761AiTwe1kB8="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/connections-1.4.0.tgz_1454963151300_0.10736043122597039"}},"1.4.1":{"name":"connections","version":"1.4.1","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","scripts":{"test":"standard"},"repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","devDependencies":{"standard":"^6.0.7"},"gitHead":"b00324d6a64a2ee76d467978867b14861dfd019b","_id":"connections@1.4.1","_shasum":"f04265e58ee95e486752c70c2b09d54220955907","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"f04265e58ee95e486752c70c2b09d54220955907","tarball":"https://registry.npmjs.org/connections/-/connections-1.4.1.tgz","integrity":"sha512-vNllTvuKCfcLF6LS9kOlo71zeWlV6I3mR7KDpJ1t10J39Kq+O35Lw7PS8j906eOWIfhKprMczP3WPpFdHGwORg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEv6UJQc70ENOypFQ+HkotJqmVcE8zPvo+lCXben2WhfAiEA0LESSGYC4Z3BQZPG4bXKQbWm0rupqnEQQZLfRmKGlPA="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/connections-1.4.1.tgz_1455995896977_0.3958912177477032"}},"1.4.2":{"name":"connections","version":"1.4.2","description":"Keeps track of connections to an http server and provides a way to close connections","main":"index.js","author":{"name":"max ogden"},"license":"BSD-2-Clause","scripts":{"test":"standard"},"repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"bugs":{"url":"https://github.com/maxogden/connections/issues"},"homepage":"https://github.com/maxogden/connections","devDependencies":{"standard":"^6.0.7"},"gitHead":"1028d97e34da56582a53a676e87562e86dbc7542","_id":"connections@1.4.2","_shasum":"7890482bf5c71af6c5ca192be3136aed74428aad","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"7890482bf5c71af6c5ca192be3136aed74428aad","tarball":"https://registry.npmjs.org/connections/-/connections-1.4.2.tgz","integrity":"sha512-IBhwoKlc4Ljlbt3qeD29ehWomxXiBZCj02BbPQ7/nu5NdyHUts3ftfBuzQK7t3W2au/fVqTi0l1TqkgV1UwnBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWdeJM8SpwlNk+IJ+cbJf3OHZkAX3Ltp7fKtykXWXmzQIgPwWLvzyR0wUuCNVVPI59UsyhZJmf3dZFvW1v8e7wvWc="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/connections-1.4.2.tgz_1455996529320_0.7565697587560862"}}},"readme":"# connections\n\nKeeps track of connections to an http or tcp server (or any other server object with the same api) and provides a way to close connections\n\nBy default, `require('http').createServer` provides no mechanism for tracking client connections and/or closing client connections\n\n[![NPM](https://nodei.co/npm/connections.png)](https://nodei.co/npm/connections/)\n\n## usage\n\n```\nvar connections = require('connections')(serverInstance)\n```\n\nYou can also pass an array of server instances\n\n`connections` has `.sockets` and `.destroy`\n\n### connections.on('idle', function() {})\n\ncalled whenever all active connections have closed\n\n### connections.on('close', function(socket) {})\n\ncalled whenever a socket closes\n\n### connections.on('connection', function (socket) {})\n\nforwarded event from the server or servers\n\n### connections.sockets\n\nan array of open sockets (http clients)\n\n### connections.destroy()\n\ndestroys/closes all active connections (calls .destroy() on each socket)\n\n### connections.add(socket)\n\nmanually add a socket to the connection list\n\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"time":{"modified":"2022-06-13T21:51:16.561Z","created":"2013-12-07T22:27:08.963Z","0.0.1":"2013-12-07T22:27:10.602Z","0.1.0":"2014-04-18T19:21:05.843Z","1.0.0":"2014-04-18T19:27:47.921Z","1.1.0":"2016-02-08T19:47:58.525Z","1.2.0":"2016-02-08T19:58:54.427Z","1.3.0":"2016-02-08T20:02:35.278Z","1.4.0":"2016-02-08T20:25:54.255Z","1.4.1":"2016-02-20T19:18:21.286Z","1.4.2":"2016-02-20T19:28:52.063Z"},"author":{"name":"max ogden"},"repository":{"type":"git","url":"https://github.com/maxogden/connections.git"},"homepage":"https://github.com/maxogden/connections","bugs":{"url":"https://github.com/maxogden/connections/issues"},"license":"BSD-2-Clause","readmeFilename":"readme.md"}