{"_id":"express-ws","_rev":"4664002","name":"express-ws","description":"WebSocket endpoints for Express applications","dist-tags":{"latest":"5.0.2"},"maintainers":[{"name":"henningm","email":""}],"time":{"modified":"2026-04-10T22:25:16.000Z","created":"2014-03-14T14:59:21.665Z","5.0.2":"2021-06-07T20:34:17.495Z","5.0.1":"2021-06-07T19:11:21.822Z","4.0.0":"2018-06-06T15:21:11.955Z","3.0.0":"2017-02-16T18:00:00.790Z","2.0.0":"2016-08-15T19:28:05.567Z","2.0.0-rc.1":"2016-04-18T19:18:54.100Z","2.0.0-beta":"2016-04-02T10:26:43.081Z","1.0.0":"2016-02-14T12:57:56.273Z","1.0.0-rc.2":"2015-10-03T09:29:05.942Z","1.0.0-rc.1":"2015-08-21T12:49:26.489Z","0.2.6":"2015-03-31T12:19:04.890Z","0.2.5":"2015-02-27T06:55:13.812Z","0.2.4":"2015-01-21T17:36:06.499Z","0.2.3":"2014-12-30T05:15:58.099Z","0.2.2":"2014-12-17T16:43:41.478Z","0.2.1":"2014-09-01T15:09:01.854Z","0.2.0":"2014-08-29T12:03:32.028Z","0.1.0":"2014-03-14T15:29:17.583Z","0.0.0":"2014-03-14T14:59:21.665Z"},"users":{},"author":{"name":"Henning Morud","email":"henning@morud.org"},"repository":{"type":"git","url":"git+https://github.com/HenningM/express-ws.git"},"versions":{"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":{"shasum":"5b02d41b937d05199c6c266d7cc931c823bda8eb","size":6844,"noattachment":false,"key":"/express-ws/-/express-ws-5.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-5.0.2.tgz"},"_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_5.0.2_1623098057353_0.6791676733547465"},"_hasShrinkwrap":false,"publish_time":1623098057495,"_cnpm_publish_time":1623098057495,"_cnpmcore_publish_time":"2021-12-16T18:24:01.253Z"},"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":{"shasum":"e9fd270aac488bec483f47d3dc08a8c885cbcf19","size":6713,"noattachment":false,"key":"/express-ws/-/express-ws-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-5.0.1.tgz"},"_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_5.0.1_1623093081720_0.32635130197888773"},"_hasShrinkwrap":false,"publish_time":1623093081822,"_cnpm_publish_time":1623093081822,"_cnpmcore_publish_time":"2021-12-16T18:24:01.476Z"},"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":{"shasum":"dabd8dc974516418902a41fe6e30ed949b4d36c4","size":6812,"noattachment":false,"key":"/express-ws/-/express-ws-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-4.0.0.tgz"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_4.0.0_1528298471882_0.5274698752380893"},"_hasShrinkwrap":false,"publish_time":1528298471955,"_cnpm_publish_time":1528298471955,"_cnpmcore_publish_time":"2021-12-16T18:24:01.660Z"},"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","size":6771,"noattachment":false,"key":"/express-ws/-/express-ws-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-3.0.0.tgz"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-3.0.0.tgz_1487267998975_0.9438093265052885"},"publish_time":1487268000790,"_hasShrinkwrap":false,"_cnpm_publish_time":1487268000790,"_cnpmcore_publish_time":"2021-12-16T18:24:01.905Z"},"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","size":6763,"noattachment":false,"key":"/express-ws/-/express-ws-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-2.0.0.tgz"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-2.0.0.tgz_1471289283694_0.7413552775979042"},"publish_time":1471289285567,"_hasShrinkwrap":false,"_cnpm_publish_time":1471289285567,"_cnpmcore_publish_time":"2021-12-16T18:24:02.129Z"},"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","size":6042,"noattachment":false,"key":"/express-ws/-/express-ws-2.0.0-rc.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-2.0.0-rc.1.tgz"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-2.0.0-rc.1.tgz_1461007131840_0.022656953427940607"},"publish_time":1461007134100,"_hasShrinkwrap":false,"_cnpm_publish_time":1461007134100,"_cnpmcore_publish_time":"2021-12-16T18:24:02.334Z"},"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","size":5740,"noattachment":false,"key":"/express-ws/-/express-ws-2.0.0-beta.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-2.0.0-beta.tgz"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-ws-2.0.0-beta.tgz_1459592800912_0.5774150821380317"},"publish_time":1459592803081,"_hasShrinkwrap":false,"_cnpm_publish_time":1459592803081,"_cnpmcore_publish_time":"2021-12-16T18:24:02.533Z"},"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","size":360454,"noattachment":false,"key":"/express-ws/-/express-ws-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-1.0.0.tgz"},"maintainers":[{"name":"henningm","email":""}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/express-ws-1.0.0.tgz_1455454672038_0.9708555873949081"},"publish_time":1455454676273,"_hasShrinkwrap":false,"_cnpm_publish_time":1455454676273,"_cnpmcore_publish_time":"2021-12-16T18:24:03.033Z"},"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","size":1922,"noattachment":false,"key":"/express-ws/-/express-ws-1.0.0-rc.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-1.0.0-rc.2.tgz"},"maintainers":[{"name":"henningm","email":""}],"publish_time":1443864545942,"_hasShrinkwrap":false,"_cnpm_publish_time":1443864545942,"_cnpmcore_publish_time":"2021-12-16T18:24:03.312Z"},"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":""}],"dist":{"shasum":"fe81922c7ecfdbb16c2b2b256a728728493acbd0","size":2055,"noattachment":false,"key":"/express-ws/-/express-ws-1.0.0-rc.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-1.0.0-rc.1.tgz"},"publish_time":1440161366489,"_hasShrinkwrap":false,"_cnpm_publish_time":1440161366489,"_cnpmcore_publish_time":"2021-12-16T18:24:03.502Z"},"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":""}],"dist":{"shasum":"6af2a7034db2f360cdd9403347cabf5253c279e8","size":2026,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.6.tgz"},"publish_time":1427804344890,"_hasShrinkwrap":false,"_cnpm_publish_time":1427804344890,"_cnpmcore_publish_time":"2021-12-16T18:24:03.718Z"},"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":""}],"dist":{"shasum":"3467bc02481fabdd3503e8b1bb1c5e660b7aefeb","size":2005,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.5.tgz"},"publish_time":1425020113812,"_hasShrinkwrap":false,"_cnpm_publish_time":1425020113812,"_cnpmcore_publish_time":"2021-12-16T18:24:03.990Z"},"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":""}],"dist":{"shasum":"f7abca8975331c0b3af96bdb04571f1a3eba3e86","size":1899,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.4.tgz"},"publish_time":1421861766499,"_hasShrinkwrap":false,"_cnpm_publish_time":1421861766499,"_cnpmcore_publish_time":"2021-12-16T18:24:04.221Z"},"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":""}],"dist":{"shasum":"10c6f7fdfabe366923db97e52a916ab10cdb7694","size":1716,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.3.tgz"},"publish_time":1419916558099,"_hasShrinkwrap":false,"_cnpm_publish_time":1419916558099,"_cnpmcore_publish_time":"2021-12-16T18:24:04.473Z"},"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":""}],"dist":{"shasum":"84cc6ad18d6577958cd0b6d462be6ee4b112d338","size":1727,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.2.tgz"},"publish_time":1418834621478,"_hasShrinkwrap":false,"_cnpm_publish_time":1418834621478,"_cnpmcore_publish_time":"2021-12-16T18:24:04.738Z"},"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":""}],"dist":{"shasum":"45fa3ea629c4da5996deaa5c9c4e88d7d10e5f04","size":1722,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.1.tgz"},"publish_time":1409584141854,"_hasShrinkwrap":false,"_cnpm_publish_time":1409584141854,"_cnpmcore_publish_time":"2021-12-16T18:24:04.951Z"},"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":""}],"dist":{"shasum":"e9e41fa1e38f33a4e3251241463673c6c2a811c6","size":1741,"noattachment":false,"key":"/express-ws/-/express-ws-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.2.0.tgz"},"publish_time":1409313812028,"_hasShrinkwrap":false,"_cnpm_publish_time":1409313812028,"_cnpmcore_publish_time":"2021-12-16T18:24:05.183Z"},"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","size":1413,"noattachment":false,"key":"/express-ws/-/express-ws-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":""}],"directories":{},"publish_time":1394810957583,"_hasShrinkwrap":false,"_cnpm_publish_time":1394810957583,"_cnpmcore_publish_time":"2021-12-16T18:24:05.404Z"},"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","size":1111,"noattachment":false,"key":"/express-ws/-/express-ws-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-ws/download/express-ws-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"henningm","email":"henning@morud.org"},"maintainers":[{"name":"henningm","email":""}],"directories":{},"publish_time":1394809161665,"_hasShrinkwrap":false,"_cnpm_publish_time":1394809161665,"_cnpmcore_publish_time":"2021-12-16T18:24:05.640Z"}},"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","_attachments":{},"homepage":"https://github.com/HenningM/express-ws","bugs":{"url":"https://github.com/HenningM/express-ws/issues"},"license":"BSD-2-Clause"}