{"_id":"sse","_rev":"1744410","name":"sse","description":"The HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".","dist-tags":{"latest":"0.0.8"},"maintainers":[{"email":"rexxars@gmail.com","name":"rexxars"},{"email":"einaros@gmail.com","name":"einaros"}],"time":{"modified":"2026-11-18T20:33:18.000Z","created":"2012-02-01T12:03:46.853Z","0.0.8":"2017-12-09T17:40:03.319Z","0.0.7":"2017-12-09T16:15:46.117Z","0.0.6":"2014-09-10T09:05:42.944Z","0.0.5":"2012-11-30T19:22:47.887Z","0.0.4":"2012-11-28T10:05:31.882Z","0.0.3":"2012-02-01T12:27:37.925Z","0.0.2":"2012-02-01T12:05:55.555Z","0.0.1":"2012-02-01T12:03:46.853Z"},"users":{"bkimminich":true,"tanmaypatel":true,"goliatone":true,"laggingreflex":true,"rajivmehtajs":true,"moimikey":true,"natarajanmca11":true,"zafaransari":true,"lawzy93":true,"hurerera":true,"71emj1":true},"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"versions":{"0.0.8":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.8","keywords":["real-time","server-sent-events","html5","sse","messaging"],"repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"mocha"},"dependencies":{"options":"0.0.6"},"devDependencies":{"mocha":"4.0.1","expect.js":"0.3.1"},"optionalDependencies":{},"gitHead":"6b94986a68dba07a7b60af7a90ebe9bf9ba562a3","description":"The HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".","bugs":{"url":"https://github.com/einaros/sse.js/issues"},"homepage":"https://github.com/einaros/sse.js#readme","_id":"sse@0.0.8","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"dist":{"integrity":"sha512-cviG7JH31TUhZeaEVhac3zTzA+2FwA7qvHziAHpb7mC7RNVJ/RbHN+6LIGsS2ugP4o2H15DWmrSMK+91CboIcg==","shasum":"5142d3c5745c064349eeefe61aef3bbb117e973b","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZRkfnbu7vY49pm52p88EoCdEXA/1b+489mEYLyE3yHAiEAp+mG8V7WASsPuudJXeBAFTfEYrLqZfqZd0xoZYw5USM="}],"size":3370,"noattachment":false,"key":"/sse/-/sse-0.0.8.tgz"},"maintainers":[{"email":"rexxars@gmail.com","name":"rexxars"},{"email":"einaros@gmail.com","name":"einaros"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-0.0.8.tgz_1512841203226_0.5197999977972358"},"publish_time":1512841203319,"_cnpm_publish_time":1512841203319},"0.0.7":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.7","keywords":["real-time","server-sent-events","html5","sse","messaging"],"repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"mocha"},"dependencies":{"options":"0.0.6"},"devDependencies":{"mocha":"4.0.1","expect.js":"0.3.1"},"optionalDependencies":{},"gitHead":"568ef19077203cdef96dc0fb98644005a0c7661c","description":"The HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".","bugs":{"url":"https://github.com/einaros/sse.js/issues"},"homepage":"https://github.com/einaros/sse.js#readme","_id":"sse@0.0.7","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"dist":{"integrity":"sha512-x90OCZnSodxHvGaMVfoylH9KoJ5kLZhV6lZmFBrb8Igr9kK2MOHlJc698MxJu5BYDVqstPuTS32QrwVUv3hzgA==","shasum":"dbcaed9bd0b7ff2ab4ec4bf33584774af657081e","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGx6akiIXab7jLM09GOojZcmGeJnHJO1aPG1GFtKo+HkAiEAtu6nZu9UNphT58xfCFhwX4m2UeuYM3RRCr+z85wEYVk="}],"size":3241,"noattachment":false,"key":"/sse/-/sse-0.0.7.tgz"},"maintainers":[{"email":"rexxars@gmail.com","name":"rexxars"},{"email":"einaros@gmail.com","name":"einaros"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-0.0.7.tgz_1512836145197_0.6949699658434838"},"publish_time":1512836146117,"_cnpm_publish_time":1512836146117},"0.0.6":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.6","keywords":["real-time","server-sent-events","html5","sse","messaging"],"repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"mocha"},"dependencies":{"options":"latest"},"devDependencies":{"mocha":"latest","expect.js":"latest"},"optionalDependencies":{},"gitHead":"8bba85fb615920a2aefa431992e8b44dd89ccf72","description":"The HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".","bugs":{"url":"https://github.com/einaros/sse.js/issues"},"homepage":"https://github.com/einaros/sse.js","_id":"sse@0.0.6","_shasum":"3192461dfa38c78424dd9bf8ea025619a125aa10","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"}],"dist":{"shasum":"3192461dfa38c78424dd9bf8ea025619a125aa10","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.6.tgz","integrity":"sha512-jyuEg8Jq9rSHsulPV6CmH0E+hkLiR1CEQqKfOpDq+QbVudvUzh8TqAPFR/EvXih0l6ixJwNGnownYMnZfTv18Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2H33QOWYfVGAQGCy2ODpYCqdYiz7OC1Bn2FQSXNu95AiAG8uwSDwKk1AshwqY3TJhPUZ5j9e+3FBxwJ6lbom3loA=="}],"size":4546,"noattachment":false,"key":"/sse/-/sse-0.0.6.tgz"},"publish_time":1410339942944,"_cnpm_publish_time":1410339942944},"0.0.5":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.5","repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"node_modules/.bin/mocha"},"dependencies":{"options":"latest"},"devDependencies":{"mocha":"latest","expect.js":"latest"},"optionalDependencies":{},"_id":"sse@0.0.5","description":"The HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".","dist":{"shasum":"d4f0c6063d2b3b44e06a4ec9877e653dc3825941","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.5.tgz","integrity":"sha512-BOL/np/kHXC/yodFOYQZ29QunBO+U5duMwmgY5q9OLxD+IIwCdsZ4IWJI7f2S3AVcpAjuhLy1exx/JJbCgmXAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2rXBPbUtkj5l1VNdkGtYu8FlBoFB7f5lmidvGJOmYNgIgR5PH7MDp7ZmS0gwZVEeiqKDC6sa2phaOUR88bpVgDOM="}],"size":158718,"noattachment":false,"key":"/sse/-/sse-0.0.5.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"}],"publish_time":1354303367887,"_cnpm_publish_time":1354303367887},"0.0.4":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.4","repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"node_modules/.bin/mocha"},"dependencies":{"options":"latest"},"devDependencies":{"mocha":"latest","expect.js":"latest"},"optionalDependencies":{},"_id":"sse@0.0.4","description":"The HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".","dist":{"shasum":"15c4a5aad8f8d29888deed0089aa9aadc6dce2d5","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.4.tgz","integrity":"sha512-yZqfzT8oZv4lMrdFTbHc52viq37RKxT7Dala4JeI9SaXoBWOhTVW8lVX9+zrav058pVLU+J21oabtjlggXYSIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt42sx2SFpG6Aev+Decuv/zSA2Rje8OkCifjz+3A0GSQIgAlpHmslBg0dRPx9ND+YqzsJUJWHxJKkaGRDrK+pRHvI="}],"size":158664,"noattachment":false,"key":"/sse/-/sse-0.0.4.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"}],"publish_time":1354097131882,"_cnpm_publish_time":1354097131882},"0.0.3":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.3","repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"node_modules/.bin/mocha"},"dependencies":{"options":"latest"},"devDependencies":{"mocha":"latest","expect.js":"latest"},"optionalDependencies":{},"_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"_id":"sse@0.0.3","_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"fc8274f02dedb6433db16db73d1b9e066e785144","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.3.tgz","integrity":"sha512-3Y/C3NP8Bs329JrXtMauxiBOUsmmLMg6bnyd3KI0URjVsKAaLtIlELbFis4Kv0lP6BZC9Hn+5IFEBDYunir0lA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYp1oTX4ETfAYwdR9D4zC1xYKt5BJwZM4vxmbsL4cj8AiAxiItyduJP5rKJTB6+SqLn4hp9qDFOPSTQ4M7ZyQAyQA=="}],"size":3210,"noattachment":false,"key":"/sse/-/sse-0.0.3.tgz"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"}],"publish_time":1328099257925,"_cnpm_publish_time":1328099257925},"0.0.2":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.2","repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"node_modules/.bin/mocha"},"dependencies":{"options":"latest"},"devDependencies":{"mocha":"latest","expect.js":"latest"},"optionalDependencies":{},"_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"_id":"sse@0.0.2","_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"c65bc2a5717a89355d7a289f11c9f98c41caf147","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.2.tgz","integrity":"sha512-EQby5KzzK2sRFRDTUgv1jXA/lPDB+BwQe6B4mMcdV92up7eyuPkPcPvIXqK+JTLdtOUZxmVBX/jYVcaaV0uwGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEHPX0rdRSITa/hjhX9kDBdb/SZRkJQtj7UMRTv79taAiEA5ueYkVt0oMBRnHwuaNsIpPxhAJ/zBzb+Qn2IqLqi/gE="}],"size":2933,"noattachment":false,"key":"/sse/-/sse-0.0.2.tgz"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"}],"publish_time":1328097955555,"_cnpm_publish_time":1328097955555},"0.0.1":{"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"name":"sse","version":"0.0.1","repository":{"type":"git","url":"git://github.com/einaros/sse.js.git"},"engines":{"node":">=0.4.0"},"scripts":{"test":"node_modules/.bin/mocha"},"dependencies":{"options":"latest"},"devDependencies":{"mocha":"latest","expect.js":"latest"},"optionalDependencies":{},"_npmUser":{"name":"einaros","email":"einaros@gmail.com"},"_id":"sse@0.0.1","_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"2a530e5a140e79b49497cfa89d57f00ba3044441","tarball":"http://registry-npm.ywwl.com/sse/download/sse-0.0.1.tgz","integrity":"sha512-Lg+RcbPxoyjNzWMmEkSJmTjyrVHGejLVwqZQ50tmg6u+NyU3+UZ6SMl5ZO5xLxuShEc7opjS86bZAgecyH161A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGeY5S2VfBBOxIL5j/VtMWR+voNCDOTFPsOyLRucuvXSAiEAqjTH1PeIa42mDCXxrHllrZDJ61KlvDlvLh5Wvia2uBo="}],"size":2934,"noattachment":false,"key":"/sse/-/sse-0.0.1.tgz"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"}],"publish_time":1328097826853,"_cnpm_publish_time":1328097826853}},"readme":"# sse.js: a server-sent events implementation for node.js #\n\nThe HTML5 Server-Sent events specification is introduced \"to enable servers to push data to Web pages over HTTP or using dedicated server-push protocols\".\n\nThe spec can be found [here](https://html.spec.whatwg.org/multipage/comms.html#server-sent-events).\n\n## Usage ##\n\n### Installing ###\n\n`npm install sse`\n\n### Basic server ###\n\n```js\nvar SSE = require('sse')\n  , http = require('http');\n\nvar server = http.createServer(function(req, res) {\n  res.writeHead(200, {'Content-Type': 'text/plain'});\n  res.end('okay');\n});\n\nserver.listen(8080, '127.0.0.1', function() {\n  var sse = new SSE(server);\n  sse.on('connection', function(client) {\n    client.send('hi there!');\n  });\n});\n```\n\nClient code for the above server:\n\n```js\nvar es = new EventSource(\"/sse\");\nes.onmessage = function (event) {\n  console.log(event.data);\n};\n```\n\n## License ##\n\n(The MIT License)\n\nCopyright (c) 2011 Einar Otto Stangvik &lt;einaros@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/einaros/sse.js#readme","bugs":{"url":"https://github.com/einaros/sse.js/issues"}}