{"_id":"@github/stable-socket","_rev":"43-f96c5228efcfd291612a1e05d4202e36","name":"@github/stable-socket","dist-tags":{"latest":"1.1.1"},"versions":{"0.1.0":{"name":"@github/stable-socket","version":"0.1.0","license":"MIT","_id":"@github/stable-socket@0.1.0","maintainers":[{"name":"anuraag016","email":"anuraag016@github.com"},{"name":"zeke","email":"zeke@sikelianos.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"mschoening","email":"max@max.wtf"},{"name":"koddsson","email":"koddsson@gmail.com"}],"homepage":"https://github.com/github/stable-socket#readme","bugs":{"url":"https://github.com/github/stable-socket/issues"},"dist":{"shasum":"4123abb7f47706de0f9b6cd24bcdd089351f3c49","tarball":"https://registry.npmjs.org/@github/stable-socket/-/stable-socket-0.1.0.tgz","fileCount":4,"integrity":"sha512-KFKGKZPN0G7ozjo4PwAAMqvBC4eZA2Ly3WTCaLUk9DXTtUv4WlrdIMTByY0yec62WMc8Q6gYki9T7tVccMLhgg==","signatures":[{"sig":"MEQCIAjCEgz3mkOU6EdkKUVDNjMrxioEvo187f7lQG1zinHmAiAPazDK/SUJIuGACE/vgOTFzHQZ6rYBosvEDWKtauYa1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDJ7lCRA9TVsSAnZWagAArFIP/3c2H3kZlCNypKr307qK\ny2enu5b9Mu8RvJ/c5suQanYkFPeH/tx7C7VoAnhUXemr/XR88zIEjqSkMv0l\n3QpTyDAH2EovNtw+/yBzVVrgUEUWAYTB1wli5P0LtDrPnTaxaQCmMrJUf9eq\nOPj4Z8Ic7ZlydIHJvGfH1haWElui7N34SuXU4vkaDe6m3F+jiGgTCAyZxBVJ\nbsmq01AhFwlGTh3xls9Au3XbIyQZIzlHUNo9mPcYY7ZY704Vlc1bd6qcUZUn\nzLE8k2lMjvP9RDowiGb2cw4akmTPiVsFkFOhpLuM6nKqY7KDTI2rLNg2dxYw\neJx3cboAgCr/YSfhwjvgYf0ThqNjUZ+KDWzjLnqqa7qOH+i72vDAqSp0tlLf\nGJGJE/PiGniK44BzIA1x9YXs1B+cOlj9NcJGlbR0i9PcC8LLlpVBt8fznOd9\nqhyZsHbHshT0kLeyeIh40FT3Sv0FdVgCps575z+b6gi8vivJJQbosPgAUG/u\nQ3dmMug4LUZmALVHq1MckrV/YAvoBlNrMdYBNebxqh04YvqxqnJxeSjuSqt4\n6vzQgAQWJE4Ze4vZNf4eFQy8jcB3X8XYqjB8khEZujukvqZWkZWhdoQ/RHeO\nnqHb2JwDvCDme00QjnQ8uX9KVev8IFoICuqIqttD4VvcE16Ogbo2WqudybIa\nZ6Z5\r\n=Jpu2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"7086f76ab1163e35a1b51d295dda1ddc50865c0b","scripts":{"lint":"eslint src/*.ts test/*.js","test":"karma start karma.config.cjs","build":"rollup -c","clean":"rm -rf dist","compile":"tsc","pretest":"npm run build","prebuild":"npm run clean && npm run lint && npm run compile","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"prettier":"@github/prettier-config","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"_npmVersion":"6.14.5","description":"A web socket that reconnects.","directories":{},"_nodeVersion":"14.5.0","eslintConfig":{"extends":["plugin:github/browser","plugin:github/recommended","plugin:github/typescript"]},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^5.1.0","mocha":"^8.0.1","eslint":"^7.3.0","rollup":"^2.21.0","karma-chai":"^0.1.0","typescript":"^3.9.5","karma-mocha":"^2.0.1","eslint-plugin-github":"^4.0.1","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","@github/prettier-config":"0.0.4"},"_npmOperationalInternal":{"tmp":"tmp/stable-socket_0.1.0_1594662629456_0.30848324357465495","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@github/stable-socket","version":"0.1.1","license":"MIT","_id":"@github/stable-socket@0.1.1","maintainers":[{"name":"anuraag016","email":"anuraag016@github.com"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"homepage":"https://github.com/github/stable-socket#readme","bugs":{"url":"https://github.com/github/stable-socket/issues"},"dist":{"shasum":"dc0375eed53fa36336fe9673d0f34d2caac1d548","tarball":"https://registry.npmjs.org/@github/stable-socket/-/stable-socket-0.1.1.tgz","fileCount":5,"integrity":"sha512-DlbAbDNUxUiGa998Y+My4P1+t7isIGeMybt5V501gpwtOioZ44vvraBufwXsphNqQAfheZF8sAjJByte9YdWAA==","signatures":[{"sig":"MEUCIQDolBOAdR9MKYt9ayAajm6QcHT0gATba4+AT2ADYtEBswIgIerVpB/I/asCAn10XI0Lyr50j+8vfXU5dB+ygKMwa2E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDKTACRA9TVsSAnZWagAAdDkP/i6FLCqHh+g5AZsmqjPv\noDuxzP9b6LzzmqJ7jelTQkqnQGmPMzPl5mKsOOfURvI4rF9VVq4j+2vaLE4o\nm+NuGVXyXJ88G+cHqVJTkHhp6C9jHLtFbc3RTnbgkoaJm/8jChLY1NntXwPg\nbil5X8y0NRXmGfrlhbrZMv82hiB7cFtHXwMbwh83tOLGfPRQiODvcGdVK7yR\nxQfIRvJHGs7CtsnWKe5yqZ+Z5h7Vte6Wg+MHZGmIsTE0r74TVTJAELxAuYyC\nqiAz7YM0BQPH2imlCHriYDM8qUlaZuqeRfVtEM1GEXJ5a02+J/Cfu3jFSYU3\nNkEpnMLMuJhzJ7wOaa5ZvwyVZeIQcXbxzPJy0e/mQQiwdQj+t8K6ZvQYIYVf\nWH9Fvw+45pY0Fi5ng25IFSuoMBV441GxCvZONVYOBPnbdUP1W4aUNci0VEdu\nVB7svB1VC2AdZu+NtvOU8leWnTC3/E3is076l7+zAK1C9mlZOY1EQoWWEWlD\niCgwrwJ8G83CyANOvsWkiLMiaVNFyQwI1EZX2CfF8SyAjZKhX7R6wktI6pET\nLGJhycKEQ6f4a8gNgWgNfaLDrqr+EJrhSPUXFPWoRdkOfjJqAPfT7Eq+B7uJ\n7tjcd5PCP0Kl4YtpR7mCnOQxd0AfGxlPgC49I3PuwdevGyy9IA5nNx5bRY93\n2xGb\r\n=jmt/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"853f4189480dd4343e1679b7e624811977609410","scripts":{"lint":"eslint src/*.ts test/*.js","test":"karma start karma.config.cjs","build":"rollup -c","clean":"rm -rf dist","compile":"tsc","pretest":"npm run build","prebuild":"npm run clean && npm run lint && npm run compile","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"prettier":"@github/prettier-config","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"_npmVersion":"6.14.5","description":"A web socket that reconnects.","directories":{},"_nodeVersion":"14.5.0","eslintConfig":{"extends":["plugin:github/browser","plugin:github/recommended","plugin:github/typescript"]},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^5.1.0","mocha":"^8.0.1","eslint":"^7.3.0","rollup":"^2.21.0","karma-chai":"^0.1.0","typescript":"^3.9.5","karma-mocha":"^2.0.1","eslint-plugin-github":"^4.0.1","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","@github/prettier-config":"0.0.4"},"_npmOperationalInternal":{"tmp":"tmp/stable-socket_0.1.1_1594664128445_0.41994471294098834","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@github/stable-socket","version":"0.1.2","license":"MIT","_id":"@github/stable-socket@0.1.2","maintainers":[{"name":"anuraag016","email":"anuraag016@github.com"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"homepage":"https://github.com/github/stable-socket#readme","bugs":{"url":"https://github.com/github/stable-socket/issues"},"dist":{"shasum":"9e244289828f814e50e1c3fa16848130663d6443","tarball":"https://registry.npmjs.org/@github/stable-socket/-/stable-socket-0.1.2.tgz","fileCount":9,"integrity":"sha512-6rNv3gzCSFiRwIgrOPjyiryL7A3Up47LA1UjIeoJt9ZJRMKAx/qU8XH868ijf1lvRPUB7u76ay8TJQnN7S6RoA==","signatures":[{"sig":"MEQCIDK1zS7bY+TriiDAO6i5H/JQylT6dWEDha7vuZcJqh5bAiAlO9iBf5v+u4cmnb/glIDzvDNCV5cp9kOjgY6uDWxUKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDKa0CRA9TVsSAnZWagAAhxYP/2qGBLB+9FGOCC9WBsGm\n4TafXmir98ajFydjwJ/k/pV+1c6Bk/CLSc3z83bN38lXNjQvt0UP0j1F6WGh\n8V5btlFE34NqWK5WIhJSsvsT79RavXuRDmYthARu/ZVDK5ugLDVCK+1yPMMM\nR3T2+dnEFm6qOaYMZ6lDQHBjKL7IvxQlJvEYdGnzn4JTnAH5ycNjgD+AcRaT\npG9AZYF54gFKn1tzkKiMENq8VWPHbG+M9DCnoTXjoVbvnabyi3hKuzDcY9EK\n2J2R9hB4aMUS7A5P1Fi4JpEsf5kJvdEm/MqFQUSzvjiColzNaqD6dHOtd99M\n5L0yU0ApOUzZjzOJqSl5R2pEWRevbzYCsd9mNMGbE7SYUB2wETrm53KWmC/a\nN9gH4nGMxRuY8doY4FJzaQx6FS1BfQAj0GFnCLTh6uk9+KvNvrh1skLFaO/g\nxuMIbGcXQVzJR5ld4wfHMKWjO/5IWGW9SMdIdzPg8fxq94Pts4s3oqaEVRj3\n5XkDUEO8Zvv0BYb0zX77XwdfYDddnlo1gdfxy4gElYk+bV06khagyRVp0XHt\nAMHQNfuyLE/Lj2sI5jhK9gnwrgNrFRl+nIHPZ0TnWy/P+JF6PtKGA3sCwJjN\n71nasmcTC+l5edDlv0zsgsA8fvA3bRMMlY1ojgK9dn7hNM9J5p9/ypEXmgxI\nK5cO\r\n=4rVU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"fb89d7112216df3d65c1e9513d312fbfd7c9898a","scripts":{"lint":"eslint src/*.ts test/*.js","test":"karma start karma.config.cjs","build":"rollup -c","clean":"rm -rf dist","compile":"tsc","pretest":"npm run build","prebuild":"npm run clean && npm run lint && npm run compile","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"prettier":"@github/prettier-config","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"_npmVersion":"6.14.5","description":"A web socket that reconnects.","directories":{},"_nodeVersion":"14.5.0","eslintConfig":{"extends":["plugin:github/browser","plugin:github/recommended","plugin:github/typescript"]},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^5.1.0","mocha":"^8.0.1","eslint":"^7.3.0","rollup":"^2.21.0","karma-chai":"^0.1.0","typescript":"^3.9.5","karma-mocha":"^2.0.1","eslint-plugin-github":"^4.0.1","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","@github/prettier-config":"0.0.4"},"_npmOperationalInternal":{"tmp":"tmp/stable-socket_0.1.2_1594664628238_0.7194257432203282","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@github/stable-socket","version":"1.0.0","license":"MIT","_id":"@github/stable-socket@1.0.0","maintainers":[{"name":"colebemis","email":"colebemis@github.com"},{"name":"anuraag016","email":"anuraag016@github.com"},{"name":"zeke","email":"zeke@sikelianos.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"mschoening","email":"max@max.wtf"},{"name":"koddsson","email":"koddsson@gmail.com"}],"homepage":"https://github.com/github/stable-socket#readme","bugs":{"url":"https://github.com/github/stable-socket/issues"},"dist":{"shasum":"f0ff37db75c132fd8e755574042adbf0c93e675c","tarball":"https://registry.npmjs.org/@github/stable-socket/-/stable-socket-1.0.0.tgz","fileCount":9,"integrity":"sha512-LRoVyM5CfckmqWgsO/I2L2D4LYtHaP0sUrc4j48tYOlVmgMnVpu8bbe4GN9vUMFKvbTc1d1mQW/pwiQjPzNzGw==","signatures":[{"sig":"MEQCIAQWw8clVfGe90EuL90198mZ55HuAsWr/YzmiwNUiQpbAiALN6+XYqID3qNZCcG5I1hNe8LK0JSH6HZWx7iPHt7ekw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhytpCRA9TVsSAnZWagAA8DkP/2G9H0v4/bj4aOHFU3TD\nYlUHrlQfxK+GhOdDqrSHWrZeWHnE2lypumKgiIrfHmJeiJ8fKDC/fF01PYJa\nCT/24w384+2QMva7dHm+Djxssl+Mc0M5KGdQhbahnYHKshciUh0hqWd+h0Eh\nbTJm8D8/ZMlNOyB936Mg7AQ1aMeH2HQST0Ueq0G5MPlQoaQt01VhzoLozAc6\nwUS/Sq/x0mjvrCUzF+sS40C76PRgwtzYT7N29pQ0FvfjFeag1dGLfQ72njEu\n/vTFXIXrdsdxEGE+Ges36oC3crjhZd6o/X7AOhzSuCZaJIFwSSPF+sMzcuva\nRCVNKsbWwuGhNa+bVBKAtILgAaJZSOfGi1p9Wk5UwhGiHLkQyYsHAsg1kHTn\nu4yY/3tcwERI1DnNEBHyiWf2U3eYpumUwkNWW/d6wyhjb4185P3shuWrUFJf\nHkU85IemSLLGwqGKcVcNyEpTuy9JiSLwqpyy8thVSbf36EyzuttD/3aeweky\nMKzlC3IQP/irzsr/nuK11WZZNkWEA5jpsSskkiKCFY7yZlGO4bsKFln658hX\nmPySFYz+1RIH6eIRnl8Rbksu/mZhQj067aLb+pqSubskbVw1ls7J4Brc1pLv\nvYMEsCme0bSQ5VwVE/fNXnagok6FhX75gDWsMJIdXUBmruDLFIS3Q5wANY5n\nlSkH\r\n=vj7A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"475c2589a18b8d74a1ee907b37cb41092a5f6929","scripts":{"lint":"eslint src/*.ts test/*.js","test":"karma start karma.config.cjs","build":"rollup -c","clean":"rm -rf dist","compile":"tsc","pretest":"npm run build","prebuild":"npm run clean && npm run lint && npm run compile","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"prettier":"@github/prettier-config","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"_npmVersion":"6.14.8","description":"A web socket that reconnects.","directories":{},"_nodeVersion":"14.13.1","eslintConfig":{"extends":["plugin:github/browser","plugin:github/recommended","plugin:github/typescript"]},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^5.1.1","mocha":"^8.1.1","eslint":"^7.7.0","rollup":"^2.26.3","karma-chai":"^0.1.0","typescript":"^3.9.7","karma-mocha":"^2.0.1","nodejs-websocket":"^1.7.2","eslint-plugin-github":"^4.1.1","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","@github/prettier-config":"0.0.4"},"_npmOperationalInternal":{"tmp":"tmp/stable-socket_1.0.0_1602693992662_0.908952074850728","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@github/stable-socket","version":"1.1.0","license":"MIT","_id":"@github/stable-socket@1.1.0","maintainers":[{"name":"githubbot","email":"dgreif+githubbotnpm@github.com"},{"name":"manuelpuyol","email":"manuelpuyol@github.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"mschoening","email":"max@max.wtf"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"colebemis","email":"colebemis@github.com"},{"name":"smockle","email":"clay@smockle.com"},{"name":"simurai","email":"sim@simurai.com"},{"name":"khiga8","email":"katehiga8@gmail.com"},{"name":"dustin.greif","email":"dustin.greif@gmail.com"},{"name":"srt32","email":"simon.taranto@gmail.com"}],"homepage":"https://github.com/github/stable-socket#readme","bugs":{"url":"https://github.com/github/stable-socket/issues"},"dist":{"shasum":"b8598c02df1a935fb0c970252f0b0062f4bdaa29","tarball":"https://registry.npmjs.org/@github/stable-socket/-/stable-socket-1.1.0.tgz","fileCount":9,"integrity":"sha512-kzLHnrWGvmXka7AIUnsyF+SO5dP4dxEXX2sMixXW5ngRf3i4RhvXzFNgXVy4qBKsIsg6V3fNb3NOto0z6o4XAw==","signatures":[{"sig":"MEUCIAl5LFzyJ5wQ/h7ukgmS1T6o7jhSa/643UBH8MO2i8N1AiEA3M0jMZmwYXY5kze0C2R7UNsSLaD/J9RmKBqTUef6BPA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2I5QCRA9TVsSAnZWagAAXzYQAJNqvRi1Gd9vN9+wOry3\nqnrp9eOGdoOzdwNPeRBQArz9IBGOZa17f/zBdQtrQNFLsPBkFdDJ6Qv6+dEQ\n2Rll7x73vClBPE0LiXuDW/xSOq65UQY4nWrzPl+8xBLYHMwY1ozrZInvSk2q\nOLMJSUsXOTANVYc8kSjUN6EpZynv7Yg1ITHx7xSYIqIsuTveft4GrkLsL2ac\nmuQuIxlkfdW61onPINAKcXtnxI19s/UrnNb5oLM8TtcDximk1vSK/gRQyvDY\nUgpWeUkvrCGFygLftF51PJERVM1cb6QMays3inCps/QacqHpxX8FXTeZuO/B\n+9sawgqt7iaVdMyhqagVVfaFOucjaqiayFz6r4P3k7ov/0XvZzKuyAoNZAI9\nK6qdHfHiRREorXJrqFGkoVFPJ8JJd1KLAL71+pSXSc14CeMFyD3kI1Bi8lrq\nB3IOlcyyt0oBxZn7+HboqyVEcLhTphk3z0wbjtfgA8m1NLb8XBIVpNZNJzMH\nVZQCfpMiVh+FQ5aVipdLcA/yidDb25gE/BCLzDeuB8YVpOUmO+2l0dqsujZd\n7UCxWJewVh4ktnesuLHoMOUtJ1BSc0vTkfMNpuUR/WVIX7T/GYNrH1tOfhx+\nIEfTXjJuARFIZD9wLpCfIQirHuRQyFr8C8OozzyRG4nuTwoWIEq5nRRqiK9j\njMd9\r\n=2DOt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"ca168f117bbd1cda3cc24912c3d63325fdbbf0cf","scripts":{"lint":"eslint src/*.ts test/*.js","test":"karma start karma.config.cjs","build":"rollup -c","clean":"rm -rf dist","compile":"tsc","pretest":"npm run build","prebuild":"npm run clean && npm run lint && npm run compile","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"keithamus","email":"npm@keithcirkel.co.uk"},"prettier":"@github/prettier-config","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"_npmVersion":"7.7.6","description":"A web socket that reconnects.","directories":{},"_nodeVersion":"15.14.0","eslintConfig":{"extends":["plugin:github/browser","plugin:github/recommended","plugin:github/typescript"]},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^5.1.1","mocha":"^8.1.1","eslint":"^7.7.0","rollup":"^2.26.3","karma-chai":"^0.1.0","typescript":"^3.9.7","karma-mocha":"^2.0.1","nodejs-websocket":"^1.7.2","eslint-plugin-github":"^4.1.1","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","@github/prettier-config":"0.0.4"},"_npmOperationalInternal":{"tmp":"tmp/stable-socket_1.1.0_1634921643701_0.539920375716693","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@github/stable-socket","version":"1.1.1","license":"MIT","_id":"@github/stable-socket@1.1.1","maintainers":[{"name":"arelia","email":"arelia.jones@gmail.com"},{"name":"gracepark","email":"lugraciecy@gmail.com"},{"name":"jibrangarcia","email":"jibrang@github.com"},{"name":"andrialexandrou","email":"andri.j.alexandrou@gmail.com"},{"name":"jfuchs","email":"jonathan.fuchs@gmail.com"},{"name":"githubbot","email":"dgreif+githubbotnpm@github.com"},{"name":"manuelpuyol","email":"manuelpuyol@github.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"colebemis","email":"colebemis@github.com"},{"name":"smockle","email":"clay@smockle.com"},{"name":"simurai","email":"sim@simurai.com"},{"name":"khiga8","email":"katehiga8@gmail.com"},{"name":"dustin.greif","email":"dustin.greif@gmail.com"},{"name":"srt32","email":"simon.taranto@gmail.com"}],"homepage":"https://github.com/github/stable-socket#readme","bugs":{"url":"https://github.com/github/stable-socket/issues"},"dist":{"shasum":"661bd3e065aceb2ed223665e342e701a3e8e8301","tarball":"https://registry.npmjs.org/@github/stable-socket/-/stable-socket-1.1.1.tgz","fileCount":9,"integrity":"sha512-fIQylCDB+a1dXBSkuggBs+cFEhVYuAoLAOH6mJrYkldcNURJjELS2E1AKdAik6FvLl2CAVo5y1R+HYuze6mpgQ==","signatures":[{"sig":"MEYCIQCcVOa89szUkYmxuIl084T9Z9RO/1MHjQ4PlGrgU5darwIhAKTnT1cAuyEG76lYV0cYFQclPbozODMAav/ON7AfmfOQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@github%2fstable-socket@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14208},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"37641a2f9867ed017c4ed542f6c733e3f7265c46","scripts":{"lint":"eslint src/*.ts test/*.js","test":"npm run lint && karma start karma.config.cjs","build":"rollup -c","clean":"rm -rf dist","compile":"tsc","pretest":"npm run build","prebuild":"npm run clean && npm run compile","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"githubbot","email":"dgreif+githubbotnpm@github.com"},"prettier":"@github/prettier-config","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"_npmVersion":"10.8.3","description":"A web socket that reconnects.","directories":{},"_nodeVersion":"22.9.0","eslintConfig":{"extends":["plugin:github/browser","plugin:github/recommended","plugin:github/typescript"]},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^6.4.4","mocha":"^10.7.3","eslint":"^8.0.1","rollup":"^4.24.0","chromium":"^3.0.3","karma-chai":"^0.1.0","typescript":"^5.6.3","karma-mocha":"^2.0.1","nodejs-websocket":"^1.7.2","eslint-plugin-github":"^5.0.2","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.2.0","@github/prettier-config":"0.0.6"},"_npmOperationalInternal":{"tmp":"tmp/stable-socket_1.1.1_1728931852080_0.623398765665613","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-07-13T17:50:29.315Z","modified":"2026-08-07T19:04:44.405Z","0.1.0":"2020-07-13T17:50:29.621Z","0.1.1":"2020-07-13T18:15:28.614Z","0.1.2":"2020-07-13T18:23:48.368Z","1.0.0":"2020-10-14T16:46:32.795Z","1.1.0":"2021-10-22T16:54:03.854Z","1.1.1":"2024-10-14T18:50:52.273Z"},"bugs":{"url":"https://github.com/github/stable-socket/issues"},"license":"MIT","homepage":"https://github.com/github/stable-socket#readme","repository":{"url":"git+https://github.com/github/stable-socket.git","type":"git"},"description":"A web socket that reconnects.","maintainers":[{"email":"manuelpuyol@github.com","name":"manuelpuyol"},{"email":"yes@jonrohan.codes","name":"jonrohan"},{"email":"design-systems@github.com","name":"primer-css"},{"email":"lugraciecy@gmail.com","name":"gracepark"},{"email":"jibrang@github.com","name":"jibrangarcia"},{"email":"arelia.jones@gmail.com","name":"arelia"},{"email":"tylerjdev@github.com","name":"tylerthedev"},{"email":"clay@smockle.com","name":"smockle"},{"email":"sim@simurai.com","name":"simurai"},{"email":"katehiga8@gmail.com","name":"khiga8"},{"email":"simon.taranto@gmail.com","name":"srt32"},{"email":"dgreif+githubbotnpm@github.com","name":"githubbot"},{"email":"jonathan.fuchs@gmail.com","name":"jfuchs"},{"email":"andri.j.alexandrou@gmail.com","name":"andrialexandrou"},{"email":"joycezhu@github.com","name":"joycezhu"},{"email":"bteng22@gmail.com","name":"bteng22"},{"email":"dustin.savery@gmail.com","name":"dustin.savery"},{"email":"ncalteen@github.com","name":"ncalteen"},{"email":"alaingoga@gmail.com","name":"alaingoga"},{"email":"andrei.girip99@gmail.com","name":"andreiig"}],"readme":"# StableSocket\n\nA web socket that reconnects.\n\n## Installation\n\n```\n$ npm install @github/stable-socket\n```\n\n## Usage\n\n```ts\nimport {StableSocket} from '@github/stable-socket'\n\nconst delegate = {\n  socketDidOpen(socket: Socket) {\n    // Socket is ready to write.\n    socket.send('Hello')\n  },\n  socketDidClose(socket: Socket, code?: number, reason?: string) {\n    // Socket closed and will retry the connection.\n  },\n  socketDidFinish(socket: Socket) {\n    // Socket closed for good and will not retry.\n  },\n  socketDidReceiveMessage(socket: Socket, message: string) {\n    // Socket read data from the connection.\n  },\n  socketShouldRetry(socket: Socket, code: number): boolean {\n    // Socket reconnects unless server returns the policy violation code.\n    return code !== 1008\n  }\n}\n\nconst policy = {\n  timeout: 4000,\n  attempts: Infinity,\n  maxDelay: 60000\n}\n\nconst url = 'wss://live.example.com'\nconst socket = new StableSocket(url , delegate, policy)\nsocket.open()\n```\n\n### BufferedSocket\n\nWriting to a StableSocket while it is in the opening or closed states\ndiscards the message data. Use a BufferedSocket to buffer writes to be\nsent when it opens.\n\n```ts\nimport {BufferedSocket, StableSocket} from '@github/stable-socket'\nconst socket = new BufferedSocket(new StableSocket(url, delegate, policy))\nsocket.open()\nsocket.send('hello') // Will be sent when the socket is open.\n```\n\n### Asynchronous connections\n\nStableSocket and BufferedSocket are abstractions over a WebSocket that\nmaintain an internal state machine, managing reconnects and preventing writes\nto closed sockets. However, sometimes we need direct access to an open WebSocket\nin async functions.\n\n#### connect\n\nAsynchronously connects to a web socket port or fails after a timeout. The\nsocket is open, and writable with `send`, when its promise is fulfilled.\nReturns a Promise fulfilled with an open WebSocket or rejected with a\nconnection failure.\n\n```ts\nimport {connect} from '@github/stable-socket'\n\ntry {\n  const socket = await connect('wss://live.example.com', 100)\n  socket.send('hi')\n} catch (e) {\n  console.log('Socket connection failed', e)\n}\n```\n\n#### connectWithRetry\n\nAsynchronously connects to a web socket port, retrying failed connections\nwith exponential backoff. Returns a Promise fulfilled with an open WebSocket\nor rejected with a connection failure.\n\n```ts\nimport {connectWithRetry} from '@github/stable-socket'\n\ntry {\n  const policy = {timeout: 100, attempts: Infinity, maxDelay: 60000}\n  const socket = await connectWithRetry('wss://live.example.com', policy)\n  socket.send('hi')\n} catch (e) {\n  console.log('Socket connection failed', e)\n}\n```\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","readmeFilename":"README.md"}