{"_id":"express-ws","_rev":"69-4a036e1f3c2c79b29b6dde3259d58b6c","name":"express-ws","dist-tags":{"latest":"5.0.2"},"versions":{"0.0.0":{"name":"express-ws","version":"0.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31","node-mocks-http":"~1.0.1"},"devDependencies":{"express":"~4.0.0-rc3"},"_id":"express-ws@0.0.0","dist":{"shasum":"8ddd8e7a1db51e4cab5c65de61a9ba1fda60f9d8","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.0.0.tgz","integrity":"sha512-p3WmYPJ/D0ccVNLymLQWnQATXiDYP/DzhwMu5e4xQPuEJryeddIRagn2gHnENenL4PpAE/r3p22YO17FHv8bcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpy9APvdWRWCF8Jy8OJW/K7nj2IJ/7eS10N1RnrYEtnAiEAujproRHchfrKRoXSLhw6dVM/pRfi+iCAE77/ZWYo0rY="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"directories":{}},"0.1.0":{"name":"express-ws","version":"0.1.0","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31","node-mocks-http":"~1.0.1"},"devDependencies":{"express":"~4.0.0-rc3"},"_id":"express-ws@0.1.0","dist":{"shasum":"0f6c029248d1a3878519bef9ce4ad5b8c81ea48b","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.1.0.tgz","integrity":"sha512-haIPwT/Ux6vDU9sPNndTHDXaY9Zs2F4kJqzfLKoYjlg3LTP/iyOKy4AgveRtSNtSbJAzWdFAFh4Cn2IhFUMnqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOIu1xCFEflTp9A062w7bBV9Ug0DRnujVcpPfFlu3vlgIhANKdpVEn0Q3k/zv9NYilx0jbxmI93b643YXMu1TBMjcA"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"directories":{}},"0.2.0":{"name":"express-ws","version":"0.2.0","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"464e2d5ac8da72556baa4cc3855194f15c7ee8da","_id":"express-ws@0.2.0","_shasum":"e9e41fa1e38f33a4e3251241463673c6c2a811c6","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"e9e41fa1e38f33a4e3251241463673c6c2a811c6","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.0.tgz","integrity":"sha512-X4lyBxgi3BLzP66R21awYeCYGiw3mQ3M3GkijP79GXOuFxYiSiMU4WGuzJWA7LSHVfgeqFl7a/hD2qHQT51qzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBCocPckYqNqtVxW1yOmCFn3xWUviM1o62IY9KwgJ8LcAiBmTTKGgHDM5bdhmsjnImWXLEPy8WVfA758x7WBDRzA7w=="}]}},"0.2.1":{"name":"express-ws","version":"0.2.1","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"c2ef75386b2f3bbb39943b3e3b8aea243c496ce7","_id":"express-ws@0.2.1","_shasum":"45fa3ea629c4da5996deaa5c9c4e88d7d10e5f04","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"45fa3ea629c4da5996deaa5c9c4e88d7d10e5f04","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.1.tgz","integrity":"sha512-QnRgr+G7RG0Q6Z6TxLM0WaFQEQzV3BY4Ae52TUHwbyuD5QOq28TC3l5S1xIqIzNuX/ZYWhlZt86orSMJ092NdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHFpaNxerWnPBeV+fzLQcZQmaTBtmpWDWP145nDvZxAAiEAnyRwoqCukA2N0C1V+R8SQrrb6U8LxTqdxid+368bSp0="}]}},"0.2.2":{"name":"express-ws","version":"0.2.2","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"146fafa578c3ae3570d33ce3989ccccdc1237709","_id":"express-ws@0.2.2","_shasum":"84cc6ad18d6577958cd0b6d462be6ee4b112d338","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"84cc6ad18d6577958cd0b6d462be6ee4b112d338","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.2.tgz","integrity":"sha512-kdTJ5AjmvPbEEdovBKPQ5B0TeZxDS4iWAWfITWXk/A+ym8ofvSnM6xJSbCU4Y9/oZ02yn09M6osUvapar/3Gpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8zixuRxkF4GL+86uxT6RShdZOLGa9AdjcFJeac1pCWAiEA1U/CaOcWrcdovZSS1RGGi3CLfZmNOOkAOjZHKslQTm0="}]}},"0.2.3":{"name":"express-ws","version":"0.2.3","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"cc1cf01e4d34bf23e1c71d4044795bd60a3d4813","_id":"express-ws@0.2.3","_shasum":"10c6f7fdfabe366923db97e52a916ab10cdb7694","_from":".","_npmVersion":"1.4.12","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"10c6f7fdfabe366923db97e52a916ab10cdb7694","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.3.tgz","integrity":"sha512-F6Yd1Cu2AJQR3Ddi/sCKW6kVpbHDyUDrtEK5Rjr0gCS4rkkNmtRhKPf60kQ7OVYBWH2gvjpXdvurPkslaoaZAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/jbyqgHo20RZ5N6WieWRjUkjogS+WP3JsRMZEAk6XCAIgLUoME4j2hFClDbGLsKVS2CjC4NfRxuIbgnxPXM4+/+g="}]}},"0.2.4":{"name":"express-ws","version":"0.2.4","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"0a34dfebd17740237f91ae88c363847d97669719","_id":"express-ws@0.2.4","_shasum":"f7abca8975331c0b3af96bdb04571f1a3eba3e86","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.21","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"f7abca8975331c0b3af96bdb04571f1a3eba3e86","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.4.tgz","integrity":"sha512-xcyqb+WJLdKOE5IMQA7QniECr9G22jsQ0XUDcs440f739boTbcWkmRy18+GIYp3UFt/PGNuXYkQPiBkOU/MilA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG927NBKw0w57HH2QbIU3G9UjDmoNPUZbUJJ50M/gXc2AiAKord6k7R8GiJY6qW5i/7XZjA4XvBBTYgLxkyqOkvcrQ=="}]}},"0.2.5":{"name":"express-ws","version":"0.2.5","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"9a144a088954156b48d862aafefde776473ea682","_id":"express-ws@0.2.5","_shasum":"3467bc02481fabdd3503e8b1bb1c5e660b7aefeb","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.21","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"3467bc02481fabdd3503e8b1bb1c5e660b7aefeb","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.5.tgz","integrity":"sha512-sFuH7riFqbiXh5lFKiQp5yAAmxQWHRPZ9IL4bI6P9NZ/f/M0i9zUhsW6a+l01+FIp3cPFkVKZAAmf7ecl86W4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJK3U8A8VL2Bl6bfjpI6YxHsEl0NM9tcsIMc1RRT+UiAiBiioWZhMqlfSRXivkj81iZNQVhM8SHj2/6USHkcFUTnA=="}]}},"0.2.6":{"name":"express-ws","version":"0.2.6","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"url-join":"0.0.1","ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"fcedcd73c51b898b9795911d1359ebae01229887","_id":"express-ws@0.2.6","_shasum":"6af2a7034db2f360cdd9403347cabf5253c279e8","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.21","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"6af2a7034db2f360cdd9403347cabf5253c279e8","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-0.2.6.tgz","integrity":"sha512-ADNOy9OY5wTki4zLbTYcbfTFM1xG7MVu04+g2Fbf6MD/m3LyoiVXjwj5II6Ig27MmPCxUngyCGS3lSCo90/eLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp4xFrw9YRPf44OCP5TSKYUquK2hPRBlGX2mcd60LCTQIhAJN8EsuEnlTbLsuwhI7aiL+QGh+uRl/Yww4OwWeRUwuk"}]}},"1.0.0-rc.1":{"name":"express-ws","version":"1.0.0-rc.1","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"url-join":"0.0.1","ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"https://github.com/HenningM/express-ws"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"5b5cf93bb378a0e6dbe6ab33313bb442b0c25868","_id":"express-ws@1.0.0-rc.1","_shasum":"fe81922c7ecfdbb16c2b2b256a728728493acbd0","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.21","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"dist":{"shasum":"fe81922c7ecfdbb16c2b2b256a728728493acbd0","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-1.0.0-rc.1.tgz","integrity":"sha512-WRjmuTNZKxG+TD11LlDIekdtUJvPRcykBBThkUqBIAdreqM/e3mxDf3NoQhueoYu5dGPKXdkLquc7aENLJAPEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLfKl4LI029ZR3m3xl7LGBokCQs6jEo9etcESoPMAtnwIhAPGYFZD48ucoyJYh/OzRhG24IZ1nZ46uW5xVwgytA3XM"}]}},"1.0.0-rc.2":{"name":"express-ws","version":"1.0.0-rc.2","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Andrew Phillips","email":"theasp@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"url-join":"0.0.1","ws":"~0.4.31"},"devDependencies":{"express":"~4.0.0-rc3"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"f4a0000126d9d7ce62143c15ff7134adf4ee056d","_id":"express-ws@1.0.0-rc.2","_shasum":"6aed46b801975ba94eab950a466abed469e7e367","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"shasum":"6aed46b801975ba94eab950a466abed469e7e367","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-1.0.0-rc.2.tgz","integrity":"sha512-z0RRfLXyRP5peZTQYggpAF7x7J2XwNua1HyniSvv13b2TWzAzm5B8nhjSmw8XikUQnHSC9evPAUpz5rmsBecLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAM/smab8MplHCzaIaGKBVr9QAUH6b8S0lRVouRNcreJAiEA13RTqtQ4Wi8nQCi6zaetdvi/e5l2GeKbRpCM9KFjpxw="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}]},"1.0.0":{"name":"express-ws","version":"1.0.0","description":"WebSocket endpoints for express applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Andrew Phillips","email":"theasp@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"^1.0.0"},"devDependencies":{"express":"^4.0.0"},"peerDependencies":{"express":"^4.0.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","gitHead":"cc4646e598ab26ca6489d4f267993fb92b15db84","_id":"express-ws@1.0.0","_shasum":"1ac3168f2823218162a66b512ba58ef9fafdf0e6","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"shasum":"1ac3168f2823218162a66b512ba58ef9fafdf0e6","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-1.0.0.tgz","integrity":"sha512-JpTE45STzrxoFnHfXJ2qZCiCdHW3z2wwAZpnMSEgKnFyOs+0qxQb6tSr2HFiKqxf13jXBEoBqFC7PPlT4AyYNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBO8ypMRDirl0ARLkmuDsGJ88kHwQpoKHFz38DjD42EPAiACvSk7q77H2Swxj3DOitod762dEzsHPlGKQj+vqfDsDw=="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/express-ws-1.0.0.tgz_1455454672038_0.9708555873949081"}},"2.0.0-beta":{"name":"express-ws","version":"2.0.0-beta","description":"WebSocket endpoints for Express applications","main":"index.js","scripts":{"prepublish":"npm run build","build":"babel src/ -d lib/","lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"^1.0.0"},"peerDependencies":{"express":"^4.0.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"babel-cli":"^6.5.1","babel-preset-es2015":"^6.5.0","eslint":"^1.10.3","eslint-config-airbnb":"^5.0.0"},"gitHead":"e4dde7b48199f4f37b0424980819defd6261af3e","_id":"express-ws@2.0.0-beta","_shasum":"ac598a4d83ea039a41a1a7b2064011ce61405c19","_from":".","_npmVersion":"3.8.3","_nodeVersion":"4.4.1","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"shasum":"ac598a4d83ea039a41a1a7b2064011ce61405c19","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-2.0.0-beta.tgz","integrity":"sha512-GxOK38AjCzEzk2wsbJspIMnX8+z16t35GpovZQZk9TEs9S5yTW2YMem3wtpK8qxjopHfraQYqsekc5zHVtyIxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCm5hcTilNsbCnq8YKqxcy39KULkt8vvY8+Jzru+zSssAIgNluwKOB9sNFu4G7wDUpQKHnbe3zIc1Bnxowsq61VvV4="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-2.0.0-beta.tgz_1459592800912_0.5774150821380317"}},"2.0.0-rc.1":{"name":"express-ws","version":"2.0.0-rc.1","description":"WebSocket endpoints for Express applications","main":"index.js","scripts":{"prepublish":"npm run build","build":"babel src/ -d lib/","lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"^1.0.0"},"peerDependencies":{"express":"^4.0.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"babel-cli":"^6.5.1","babel-preset-es2015":"^6.5.0","eslint":"^1.10.3","eslint-config-airbnb":"^5.0.0"},"gitHead":"c268558be6f488d2edb83a64dc27179ee235a726","_id":"express-ws@2.0.0-rc.1","_shasum":"9a7c7fabdf1fb8d91dbeedcc30a6f2b5bcb76826","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"shasum":"9a7c7fabdf1fb8d91dbeedcc30a6f2b5bcb76826","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-2.0.0-rc.1.tgz","integrity":"sha512-AHaieyY1Hv4bv/QUkODEQQxKLhFYfHZI3la65nAo4jiL0o02k9RzKM+NJ7qRADaZcpwzWvJg8EEvj+q0guVpZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGHyOzipLjbZpSDsCLHmBs7EkLTInHiNKmf/e7HBM1JAiA21SLWx38UP2wiScu0AbOTmfiyTfL5DV3tNqjhdQEbiA=="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-2.0.0-rc.1.tgz_1461007131840_0.022656953427940607"}},"2.0.0":{"name":"express-ws","version":"2.0.0","description":"WebSocket endpoints for Express applications","main":"index.js","scripts":{"prepublish":"npm run build","build":"babel src/ -d lib/","lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"},{"name":"Nicholas Schell","email":"nschell@gmail.com"},{"name":"Max Truxa","email":"dev@maxtruxa.com"}],"license":"BSD-2-Clause","dependencies":{"ws":"^1.0.0"},"peerDependencies":{"express":"^4.0.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"babel-cli":"^6.5.1","babel-preset-es2015":"^6.5.0","eslint":"^1.10.3","eslint-config-airbnb":"^5.0.0"},"gitHead":"693466cbb52c966d61ef3ff3929069d6028bf9e1","_id":"express-ws@2.0.0","_shasum":"96d13fa41c8de8fa5dcbfa2dacace6f594272888","_from":".","_npmVersion":"3.8.7","_nodeVersion":"4.4.1","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"shasum":"96d13fa41c8de8fa5dcbfa2dacace6f594272888","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-2.0.0.tgz","integrity":"sha512-Voh/dZzLoNVxd+foiLS24ch2ZBKEuSJyXjHIjE2mq5bKtII8JKUVRqhr5onD7nVXU8SCxJtn4LYKnHlypRYGOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+f8g4ly6db52MmdEOqKjBzz7Gln5P0VqiHxPzg3izfQIgJKyOv28tU+NfvmDswSvg48SMagAPOraJiB4K9UcMYvo="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-2.0.0.tgz_1471289283694_0.7413552775979042"}},"3.0.0":{"name":"express-ws","version":"3.0.0","description":"WebSocket endpoints for Express applications","main":"index.js","scripts":{"prepublish":"npm run build","build":"babel src/ -d lib/","lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"},{"name":"Nicholas Schell","email":"nschell@gmail.com"},{"name":"Max Truxa","email":"dev@maxtruxa.com"},{"name":"Kræn Hansen","email":"mail@kraenhansen.dk"}],"license":"BSD-2-Clause","dependencies":{"ws":"^2.0.0"},"peerDependencies":{"express":"^4.0.0 || ^5.0.0-alpha.1"},"engines":{"node":">=4.5.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"babel-cli":"^6.5.1","babel-preset-es2015":"^6.5.0","eslint":"^3.15.0","eslint-config-airbnb":"^14.1.0","eslint-plugin-import":"^2.2.0","express":"^5.0.0-alpha.1"},"gitHead":"7afeb2f04f94d6400fa1f99e1c097b796ff9d410","_id":"express-ws@3.0.0","_shasum":"7ddaaf3b7c758865c099905989911b6234477dbd","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"shasum":"7ddaaf3b7c758865c099905989911b6234477dbd","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-3.0.0.tgz","integrity":"sha512-c7Jf16BCsfnRsJbQYOxfaEhIsMmd67QB89hDmqMSaUkDcNR3hTMMIBOCbUwhHHQQzj7Ur19BQui3e9GTB8wj8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFi2Xsfd+ZDcxWE6MizwWVVUvn1Mn+ZPEgl7wAoDUp8AiEAg/5kifzERtviRq6v07POTf1S2ZKBItzvXhqw/8DpYM8="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-3.0.0.tgz_1487267998975_0.9438093265052885"}},"4.0.0":{"name":"express-ws","version":"4.0.0","description":"WebSocket endpoints for Express applications","main":"index.js","scripts":{"prepublish":"npm run build","build":"babel src/ -d lib/","lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"},{"name":"Nicholas Schell","email":"nschell@gmail.com"},{"name":"Max Truxa","email":"dev@maxtruxa.com"},{"name":"Kræn Hansen","email":"mail@kraenhansen.dk"}],"license":"BSD-2-Clause","dependencies":{"ws":"^5.2.0"},"peerDependencies":{"express":"^4.0.0 || ^5.0.0-alpha.1"},"engines":{"node":">=4.5.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.5.0","eslint":"^4.19.0","eslint-config-airbnb":"^14.1.0","eslint-plugin-import":"^2.12.0","express":"^5.0.0-alpha.6"},"gitHead":"11928f260bcb4f4897879bf09c8abe32ca4c65f2","_id":"express-ws@4.0.0","_npmVersion":"6.0.1","_nodeVersion":"6.3.1","_npmUser":{"name":"henningm","email":"henning@morud.org"},"dist":{"integrity":"sha512-KEyUw8AwRET2iFjFsI1EJQrJ/fHeGiJtgpYgEWG3yDv4l/To/m3a2GaYfeGyB3lsWdvbesjF5XCMx+SVBgAAYw==","shasum":"dabd8dc974516418902a41fe6e30ed949b4d36c4","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-4.0.0.tgz","fileCount":16,"unpackedSize":17428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbF/vpCRA9TVsSAnZWagAAPO8P/RH99Dr1f8tCRufhH3kz\n+pXjAyHACRzttVW4rKmiBSYNFqOPEJSeQ/iGvbRHEjQc/rBeC14u33OgyHa3\nhiOSY9RNe1AjvenhgfjfH6dreLsE6M7otNgDHGvGwwxKRwGxN4ak/YsyY4zP\nemOzZSCVACHICn+KFm+U+PFxecDEeszssnmhoPw6oEi6Sx0KT83N5NW5j4Wu\nRZpUbpaS8WzsKYlZAOjKvplBFnrQFgM357JkG2rWu7ONH6b+roSRu1eEFwxt\nUaYSNc2VvAXvhhX0nkEV1SeUvdBUOOEBmnF9o2tjubxshDt3ORzouonsXS0s\nAkZf0jmDkE9Ka9Kh/rb3YAGLxLVRE/1ttc7u6sytmgVubvzEa9ds83y9VMrO\nyu6uVvPt10CncdJaGX4wM8WLv9wxDK7onC3spKuqm8NQ1+6Z25cQN+YZ6C1m\n1mcGIdzWf4kS+J4ZIDImRwYYfrORnGNyaOv44OCFeTsM/o5wChFtUZmQyCFW\ncNvmdfw3udBUWswfLucM+wGlJCzJSqmteypzNvbR2gaV7EG9/pqGgVCSbEBH\nsWdzZoUuTP6FCfhnS7ngxLBQd6CCT9dEUGqmQT+Vh5Wynq2/sAtlcnz5ilWk\nbMt3pL4GapVu3kYwXuOqn9jU+EiI3qtk8GnUbLO+uVru4hoP+rsxsjVOx888\nwaBD\r\n=FGXN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEwQ9+ORazIOZTHdoDfjfGzZI2M0hn+X94iGi/dHkNXAiAwSeOcvfgiHdQ2AiRRS5Rt4NfocYJDA3yQI1s1p+TeKg=="}]},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_4.0.0_1528298471882_0.5274698752380893"},"_hasShrinkwrap":false},"5.0.1":{"name":"express-ws","version":"5.0.1","description":"WebSocket endpoints for Express applications","main":"index","module":"src/index","scripts":{"lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"},{"name":"Nicholas Schell","email":"nschell@gmail.com"},{"name":"Max Truxa","email":"dev@maxtruxa.com"},{"name":"Kræn Hansen","email":"mail@kraenhansen.dk"},{"name":"Alexis Tyler","email":"xo@wvvw.me"}],"license":"BSD-2-Clause","dependencies":{"esm":"^3.0.84","ws":"^7.4.6"},"peerDependencies":{"express":"^4.0.0 || ^5.0.0-alpha.1"},"engines":{"node":">=4.5.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"eslint":"^7.27.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.12.0","express":"^5.0.0-alpha.6"},"gitHead":"9eeefd038831fce62668c66a8670e09676d489c0","_id":"express-ws@5.0.1","_nodeVersion":"14.10.1","_npmVersion":"7.16.0","dist":{"integrity":"sha512-+bNZjSLnOczQWVVGiMLrEejh/e+YToZ9ifH8Qub9DcUafddPqGWjucOd8gvKcp4P/M8wqosXjk8ILg3VPSUQQA==","shasum":"e9fd270aac488bec483f47d3dc08a8c885cbcf19","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-5.0.1.tgz","fileCount":15,"unpackedSize":17190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvm9ZCRA9TVsSAnZWagAArs4P/0LpcLuzLYebiQErjkHQ\n2FNcjMdLIh0MBXJD3vw7uW3oId/BV91V5XT32wY+gK+T5o19a+msPKyecbbw\nGVIS2nx4goPWTklvez4P0rne1+iS4D4QZBP/A0GD9xWtRm989FsxXb/ZafmL\nlquYCJksg2I/hN8aRwPvkXN83VlB700hPlSS3XWb4WMIqsIxQ9m1gSUBhC89\no8zkuhkAglJvA2Ml4ONHr1d2/smkFB+Pd4BlckMSps5IOoeVaDQamwpTQ8zz\ncA+j3SwHqPJw9vh8jTo5wTUtD9ht/o9J/7vNT7hWA+s+i/E+hD8rVlVhxSs6\n8p1EEhvgzxtLnrtqUeE8ZEQMxepFYii3MHdcKo92G7gA9lMu5Sh+444pHv8d\n4mhsApIlrzEze730u0Jy995gauKvvgvyyOyMghLEMVR3bn+XB8IaNTe/Up6G\nPmbqUSUppWRpFiLR56/wduyQvjKhEGmLDF8AKd2lS737iYVs70n3yr9aS2+i\nNU5oSXb+/lXJ/C3FwmCrsFOv+A5Le19Z3zWzQYYnob38fRpUlTgJFwChf9qs\npAvCahSHhCvVztspIED6+gksZpnlKxpR+YmTqCzru0qURFh9lvQIP4lw2+bH\n+EOkqkxpEBam3OulZe5a6iOzR4fz/qY3M9BIcPkf8szM+ICUe604dIODWJpZ\nXUX4\r\n=g5af\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvkYnwCenB/bktG5wSa2IvtfqfMd0iDyGxcYMGMuQV0AiASRnMOrv3bhL+55ZHM8N8TjPZnbE7aRiOFfxzxcdxbTQ=="}]},"_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_5.0.1_1623093081720_0.32635130197888773"},"_hasShrinkwrap":false},"5.0.2":{"name":"express-ws","version":"5.0.2","description":"WebSocket endpoints for Express applications","main":"index.js","scripts":{"prepublish":"npm run build","build":"babel src/ -d lib/","lint":"eslint src/"},"author":{"name":"Henning Morud","email":"henning@morud.org"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"},{"name":"Nicholas Schell","email":"nschell@gmail.com"},{"name":"Max Truxa","email":"dev@maxtruxa.com"},{"name":"Kræn Hansen","email":"mail@kraenhansen.dk"}],"license":"BSD-2-Clause","dependencies":{"ws":"^7.4.6"},"peerDependencies":{"express":"^4.0.0 || ^5.0.0-alpha.1"},"engines":{"node":">=4.5.0"},"directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"keywords":["express","ws","websocket"],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"homepage":"https://github.com/HenningM/express-ws","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.5.0","eslint":"^7.27.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.12.0","express":"^5.0.0-alpha.6"},"gitHead":"19ddfb61e80867b5c0520ba133d112177daf0163","_id":"express-ws@5.0.2","_nodeVersion":"14.10.1","_npmVersion":"7.16.0","dist":{"integrity":"sha512-0uvmuk61O9HXgLhGl3QhNSEtRsQevtmbL94/eILaliEADZBHZOQUAiHFrGPrgsjikohyrmSG5g+sCfASTt0lkQ==","shasum":"5b02d41b937d05199c6c266d7cc931c823bda8eb","tarball":"https://registry.npmjs.org/express-ws/-/express-ws-5.0.2.tgz","fileCount":16,"unpackedSize":17428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvoLJCRA9TVsSAnZWagAAMtAP/08jipAMiqOYTBt9b1/K\nTidPL5u78V3AcKPVByzYY1Md421us5ucFDJawaz89A65n/9at3uu3jXSZKrn\nl6N3FVm3G91jjAvcIDtTcg/eeivcee5/oRCG35NDtSJj7ZRiXFDk4FW1p6IG\nixWkDDF43nl+z5CHfl7OWhQkuutKitga86ewvS0QT7TMcF0RlDtYBRC4lv8C\nmiXPKXyMhTHBLum8Vhw8oULbR0CPxnjUtAe5F/7+VUr1Z8aBCwYkWBLIQeVX\nZiw+vWLFaj16JWA60byadvcSxuPJd45UaaB+ADatz3pE8k+6AwQtE6fjoQOo\npEPv7d1AALOpE044EG0yI63OrUraQYli2RPai/SEIYEtZ7Fqpv47l8pso68D\nhW9y+M6TagKCP5Jvv5+K2eJUhQTdah0OvyqRh0V8au8q0mz/dj2ilyew9boX\njzNZUvFlpo4GXoKGsZUzN2v7CLwG5bGz95ljQnsaf8krWRQIZFlfXQkD+yjr\niGPZp5/2JS96H/9f8gFY8X8wZtk82dBdAkALSo0JupDxftIFAuL2vb4Hqe43\nWwv/TV+LWP4ZF4WO5/ECEWiCMZO9u1g+bqoX903tpWG4QfYBK/A4Vhm/ZszN\n1+0ipgWXXjmEEOEMM9MgBVEnvKmgYXvv2kbdGkDBKe9JTw6cBpNKZ+e60Z68\nHOF5\r\n=yA3J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHHcNLIJP2OA0HSy9ezzQVMzqHYv6yg7HpE08GQvbhbAIhAOvUkghALOZOr9dFf6gVGAAh/Qxs1RYGG7CCAoKbe/w6"}]},"_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":"henning@morud.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_5.0.2_1623098057353_0.6791676733547465"},"_hasShrinkwrap":false}},"readme":"# express-ws [![Dependency Status](https://snyk.io/test/github/henningm/express-ws/badge.svg)](https://snyk.io/test/github/henningm/express-ws)\n\n[WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) endpoints for [Express](http://expressjs.com/) applications. Lets you define WebSocket endpoints like any other type of route, and applies regular Express middleware. The WebSocket support is implemented with the help of the [ws](https://github.com/websockets/ws) library.\n\n## Installation\n\n`npm install --save express-ws`\n\n## Usage\n\n__Full documentation can be found in the API section below. This section only shows a brief example.__\n\nAdd this line to your Express application:\n\n```javascript\nvar expressWs = require('express-ws')(app);\n```\n\n__Important: Make sure to set up the `express-ws` module like above *before* loading or defining your routers!__ Otherwise, `express-ws` won't get a chance to set up support for Express routers, and you might run into an error along the lines of `router.ws is not a function`.\n\nAfter setting up `express-ws`, you will be able to add WebSocket routes (almost) the same way you add other routes. The following snippet sets up a simple echo server at `/echo`.  The `ws` parameter is an instance of the WebSocket class described [here](https://github.com/websockets/ws/blob/master/doc/ws.md#class-websocket).\n\n```javascript\napp.ws('/echo', function(ws, req) {\n  ws.on('message', function(msg) {\n    ws.send(msg);\n  });\n});\n```\n\nIt works with routers, too, this time at `/ws-stuff/echo`:\n\n```javascript\nvar router = express.Router();\n\nrouter.ws('/echo', function(ws, req) {\n  ws.on('message', function(msg) {\n    ws.send(msg);\n  });\n});\n\napp.use(\"/ws-stuff\", router);\n```\n\n## Full example\n\n```javascript\nvar express = require('express');\nvar app = express();\nvar expressWs = require('express-ws')(app);\n\napp.use(function (req, res, next) {\n  console.log('middleware');\n  req.testing = 'testing';\n  return next();\n});\n\napp.get('/', function(req, res, next){\n  console.log('get route', req.testing);\n  res.end();\n});\n\napp.ws('/', function(ws, req) {\n  ws.on('message', function(msg) {\n    console.log(msg);\n  });\n  console.log('socket', req.testing);\n});\n\napp.listen(3000);\n```\n\n## API\n\n### expressWs(app, *server*, *options*)\n\nSets up `express-ws` on the specified `app`. This will modify the global Router prototype for Express as well - see the `leaveRouterUntouched` option for more information on disabling this.\n\n* __app__: The Express application to set up `express-ws` on.\n* __server__: *Optional.* When using a custom `http.Server`, you should pass it in here, so that `express-ws` can use it to set up the WebSocket upgrade handlers. If you don't specify a `server`, you will only be able to use it with the server that is created automatically when you call `app.listen`.\n* __options__: *Optional.* An object containing further options.\n  * __leaveRouterUntouched:__ Set this to `true` to keep `express-ws` from modifying the Router prototype. You will have to manually `applyTo` every Router that you wish to make `.ws` available on, when this is enabled.\n  * __wsOptions:__ Options object passed to WebSocketServer constructor. Necessary for any ws specific features.\n\nThis function will return a new `express-ws` API object, which will be referred to as `wsInstance` in the rest of the documentation.\n\n### wsInstance.app\n\nThis property contains the `app` that `express-ws` was set up on.\n\n### wsInstance.getWss()\n\nReturns the underlying WebSocket server/handler. You can use `wsInstance.getWss().clients` to obtain a list of all the connected WebSocket clients for this server.\n\nNote that this list will include *all* clients, not just those for a specific route - this means that it's often *not* a good idea to use this for broadcasts, for example.\n\n### wsInstance.applyTo(router)\n\nSets up `express-ws` on the given `router` (or other Router-like object). You will only need this in two scenarios:\n\n1. You have enabled `options.leaveRouterUntouched`, or\n2. You are using a custom router that is not based on the express.Router prototype.\n\nIn most cases, you won't need this at all.\n\n## Development\n\nThis module is written in ES6, and uses Babel for compilation. What this means in practice:\n\n* The source code lives in the `src/` directory.\n* After changing this code, make sure to run `npm run build` to compile it.\n","maintainers":[{"name":"henningm","email":"henning@morud.org"}],"time":{"modified":"2022-06-17T22:45:56.380Z","created":"2014-03-14T14:59:19.923Z","0.0.0":"2014-03-14T14:59:21.665Z","0.1.0":"2014-03-14T15:29:17.583Z","0.2.0":"2014-08-29T12:03:32.028Z","0.2.1":"2014-09-01T15:09:01.854Z","0.2.2":"2014-12-17T16:43:41.478Z","0.2.3":"2014-12-30T05:15:58.099Z","0.2.4":"2015-01-21T17:36:06.499Z","0.2.5":"2015-02-27T06:55:13.812Z","0.2.6":"2015-03-31T12:19:04.890Z","1.0.0-rc.1":"2015-08-21T12:49:26.489Z","1.0.0-rc.2":"2015-10-03T09:29:05.942Z","1.0.0":"2016-02-14T12:57:56.273Z","2.0.0-beta":"2016-04-02T10:26:43.081Z","2.0.0-rc.1":"2016-04-18T19:18:54.100Z","2.0.0":"2016-08-15T19:28:05.567Z","3.0.0":"2017-02-16T18:00:00.790Z","4.0.0":"2018-06-06T15:21:11.955Z","5.0.1":"2021-06-07T19:11:21.822Z","5.0.2":"2021-06-07T20:34:17.495Z"},"readmeFilename":"README.md","author":{"name":"Henning Morud","email":"henning@morud.org"},"license":"BSD-2-Clause","description":"WebSocket endpoints for Express applications","users":{"sorenriise":true,"ivangaravito":true,"n370":true,"jonlailam":true,"copongcopong":true,"hugojosefson":true,"koskokos":true,"cognivator":true,"rsp":true,"shubhansh":true,"mojaray2k":true,"zorak":true,"davidatkinsondoyle":true,"nilz3ro":true,"djmegane":true,"simone.sanfra":true,"windyh":true,"dtiziani":true,"shanewholloway":true,"meeh":true,"themadjoker":true,"jmsherry":true,"paraself":true,"michaelsosin":true,"zalithka":true,"gvr37leo":true,"456wyc":true,"undisclosed":true,"miloc":true},"homepage":"https://github.com/HenningM/express-ws","keywords":["express","ws","websocket"],"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"contributors":[{"name":"Jesús Leganés Combarro","email":"piranna@gmail.com"},{"name":"Sven Slootweg","email":"admin@cryto.net"},{"name":"Andrew Phillips","email":"theasp@gmail.com"},{"name":"Nicholas Schell","email":"nschell@gmail.com"},{"name":"Max Truxa","email":"dev@maxtruxa.com"},{"name":"Kræn Hansen","email":"mail@kraenhansen.dk"}],"bugs":{"url":"https://github.com/HenningM/express-ws/issues"}}