{"_id":"@alexgyver/websocket","_rev":"9-591b92a7c6fab60bb0f4fa6467db7a24","name":"@alexgyver/websocket","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@alexgyver/websocket","version":"1.0.0","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.0","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"154faecc475defeb6c0d7ad3456abf6865a0ec0a","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.0.tgz","fileCount":10,"integrity":"sha512-nfGvFdtpu1olhV38zjc/GRuc7hVflIT7pVGvHSY3vVOnEu91D4ZahArPqO/Ay+hchXmAydLjl4O1ERRfPGeaMg==","signatures":[{"sig":"MEYCIQDuTJ8CgLYnYDygSs9h7/SNAG0E4ku0KvC+o+SZ2Iz7agIhAO5PBlR/abnPYMJidhuUTKR04PdX8hr2AJOf1ERtnEor","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7358},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"453cb52f5cea0e73b621bde3c696579a49d39190","scripts":{"build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.0.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.98.0","webpack-cli":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.0_1744885503634_0.3856908018199854","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alexgyver/websocket","version":"1.0.1","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.1","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"79ae14d5ad090d5b7688fe0af68de84b76298123","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.1.tgz","fileCount":13,"integrity":"sha512-pRsKKzsdIEDuhruGPSquYvEiPZU1UJx0bHYJnXJYeBObWUkGVmRIRs9YKZ5V1a8C3z/EBsqbDE2mwq8rMXDiMA==","signatures":[{"sig":"MEUCIHDuUWouIvYJaVS9OSaDkFTU9WcTlVI0CPanK5FgOcBqAiEAxs7n1K91vuGnwHo+Iu2VtTftcbTdSDU0lzCn4FDZJ+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10482},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"1ffc097fd0e4be39745d43538c18e9bb7dc02562","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.103.0","webpack-cli":"^6.0.1","webpack-dev-server":"^5.2.2","html-webpack-plugin":"^5.6.5"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.1_1765355731306_0.5510397872249313","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@alexgyver/websocket","version":"1.0.2","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.2","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"98ba2564845f8c41eddef039257aae21ade40dc4","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.2.tgz","fileCount":13,"integrity":"sha512-QGeZLYt2Ii1g6y/x2m6gcMJTgsqIp1m6IMRwiICwUzFFnyMg7yJ5iT003sN4mzK+SwatcieY32seRlBkScnjGQ==","signatures":[{"sig":"MEUCICr8WWPStZp51IcZGnyUFDZ0twCHNwrsW9oBeWvVaVFyAiEAx2Cvj07rx8Pl5h4PNzc8pn1XmYDfMbcesggd2wW2Lg4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11008},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"1ffc097fd0e4be39745d43538c18e9bb7dc02562","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.103.0","webpack-cli":"^6.0.1","webpack-dev-server":"^5.2.2","html-webpack-plugin":"^5.6.5"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.2_1765374467559_0.03422195083420099","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@alexgyver/websocket","version":"1.0.3","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.3","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"39fd88daeaaf0b8f357bc47c10e6dd90f65151c2","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.3.tgz","fileCount":12,"integrity":"sha512-EE/fbiOEoXM0oPA/3ujvIACu9jnIGhIhYE58/Seoq5usDNgH2jZg96fQMdnaq8F7Kpih5nSeSNa+kIw7TVqWjg==","signatures":[{"sig":"MEUCIQDtmojVDRPJJOeAUHkmT1WzX2pmuRX2uGEn43PexrnTUQIgVQML64PoyDYvCK4VhAYw21UI1LGXqKaQYD2BhDvT6JM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10406},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"44fe847dc10e1427e50203f31b3d51a6c290dfd6","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.105.1","css-loader":"^7.1.3","webpack-cli":"^6.0.1","style-loader":"^4.0.0","webpack-dev-server":"^5.2.3"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.3_1774277582483_0.6558929752256655","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@alexgyver/websocket","version":"1.0.4","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.4","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"04c5d4ec03da97f4cff12b37ae5ded8696810c28","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.4.tgz","fileCount":12,"integrity":"sha512-WQlhW4OTkczXPP3aNTEYMM0XEij3MwpqJu8eVeKiG6bSb0qx/IYXYlOhITtcDme57LPZwn3MFRcra78RQe0RxQ==","signatures":[{"sig":"MEUCIH6fW59Mtf9RsesXS7upvcHwmyyP6gw7tgKpOLahqde+AiEA//JAUFddXUNMgfDgHrhRjARlJRpDkxNWPZOq50MBCxU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10420},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"44fe847dc10e1427e50203f31b3d51a6c290dfd6","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.105.1","css-loader":"^7.1.3","webpack-cli":"^6.0.1","style-loader":"^4.0.0","webpack-dev-server":"^5.2.3"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.4_1774280473885_0.4254606803037042","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@alexgyver/websocket","version":"1.0.5","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.5","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"c9e0daa330375449104a9b381fb0cefc46112af8","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.5.tgz","fileCount":12,"integrity":"sha512-dn4p5TKG+KezhmoMSDf/XRMz+lxSkl6DchdTdRQ2sV4vaXCc+WHPieUzpwR3j4GThepcb21/QGoqfTU5YMjPiA==","signatures":[{"sig":"MEQCIHbzWlRnV4XMqrp3uP4VOybnbun6pKgy19ay5Kkg3OT5AiBJITLqGCRHKcocovm4OhdoiO43TAoc8Oi0ZQ8RJNGvbg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10425},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"44fe847dc10e1427e50203f31b3d51a6c290dfd6","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.105.1","css-loader":"^7.1.3","webpack-cli":"^6.0.1","style-loader":"^4.0.0","webpack-dev-server":"^5.2.3"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.5_1776092520893_0.43645434612315936","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@alexgyver/websocket","version":"1.0.6","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.6","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"56a8dc3eb8c49870085b314bf5c0db9a316c9066","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.6.tgz","fileCount":12,"integrity":"sha512-ORGoTlUp5YPv1KrrLSeRz8VlBB/230nrIj4YNQQE9DRSlSdoCDh3VfsxXrFNyPqYZaZXQIdzRnvZn5NskJj/1w==","signatures":[{"sig":"MEQCIG+45tKK0REupjIomBpF/C+8C1MczQGH+rMdvx+/UDFQAiBIwUfLNofRQETWDIeQI2WrwwO8BlZfZnIs9mevUY+9Pw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11734},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"675e6092d8d9a2251810eab1eef1a86729457c2a","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.105.1","css-loader":"^7.1.3","webpack-cli":"^6.0.1","style-loader":"^4.0.0","webpack-dev-server":"^5.2.3"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.6_1778777772766_0.801104423183842","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@alexgyver/websocket","version":"1.0.7","author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","_id":"@alexgyver/websocket@1.0.7","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"homepage":"https://github.com/GyverLibs/Websocket.js#readme","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"dist":{"shasum":"76db8243f6cc6fda7acb67a3aba06ee33d782d54","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.7.tgz","fileCount":12,"integrity":"sha512-O0rgrcjrglzpY231nbv0eTClxXskMgaVMqfi+ys4HACafI7rWAZ/5e6bZLl0mtYJlGD20xczHv3ECO3t0KSwNg==","signatures":[{"sig":"MEUCIQCI+J4T0VWmyETcDeOdtFnQl7iYXKr7eki7882reHMOcgIgKyS+cTsTd0u0D7BocHbPK6fHvnGt4CmRyRoSkwCyg6U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12134},"main":"./websocket.js","types":"./websocket.js","module":"./websocket.js","gitHead":"675e6092d8d9a2251810eab1eef1a86729457c2a","scripts":{"dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js","build":"webpack --config ./webpack.config.js"},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"repository":{"url":"git+https://github.com/GyverLibs/Websocket.js.git","type":"git"},"_npmVersion":"11.7.0","description":"Websocket API wrapper with reconnect","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.106.2","css-loader":"^7.1.4","webpack-cli":"^7.0.2","style-loader":"^4.0.0","webpack-dev-server":"^5.2.4"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.0.7_1778783047114_0.8263683868547373","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@alexgyver/websocket","version":"1.0.8","description":"Websocket API wrapper with reconnect","main":"./websocket.js","module":"./websocket.js","types":"./websocket.js","scripts":{"build":"webpack --config ./webpack.config.js","dev":"webpack serve --config ./webpack.dev.config.js & webpack --config ./webpack.dev.config.js"},"repository":{"type":"git","url":"git+https://github.com/GyverLibs/Websocket.js.git"},"devDependencies":{"webpack":"^5.110.2","webpack-cli":"^7.2.3","webpack-dev-server":"^6.0.0","style-loader":"^4.0.0","css-loader":"^7.1.5"},"author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","gitHead":"0925d66d512f35e5cd2979693f8f3b2d9ef7dc03","_id":"@alexgyver/websocket@1.0.8","bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"homepage":"https://github.com/GyverLibs/Websocket.js#readme","_nodeVersion":"22.19.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-RpUFOW+EytiO/sPcgj7IKhxkyGWCkTL3tqJqXhvWRZ+4BdWww1qDQoRXUb5GsQXMf5ptKu/+K7n47CwicOS/VQ==","shasum":"827541939d5ed50d2d596e13cb89f66e1b456090","tarball":"https://registry.npmjs.org/@alexgyver/websocket/-/websocket-1.0.8.tgz","fileCount":15,"unpackedSize":20199,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG06Y4zSh1wiudgYRPZoPHAjIB4QFKDS7PhbgO3fQXGfAiEAu4e/QasadqIlU4uJdWGrsJFVx3eXdx9pCjYYqFvZnqU="}]},"_npmUser":{"name":"gyver","email":"alex@alexgyver.ru"},"directories":{},"maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/websocket_1.0.8_1788244661420_0.5743019360279822"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-17T10:25:03.513Z","modified":"2026-09-01T06:37:41.962Z","1.0.0":"2025-04-17T10:25:03.836Z","1.0.1":"2025-12-10T08:35:31.464Z","1.0.2":"2025-12-10T13:47:47.700Z","1.0.3":"2026-03-23T14:53:02.624Z","1.0.4":"2026-03-23T15:41:14.043Z","1.0.5":"2026-04-13T15:02:01.037Z","1.0.6":"2026-05-14T16:56:12.910Z","1.0.7":"2026-05-14T18:24:07.263Z","1.0.8":"2026-09-01T06:37:41.562Z"},"bugs":{"url":"https://github.com/GyverLibs/Websocket.js/issues"},"author":{"name":"AlexGyver","email":"alex@alexgyver.ru"},"license":"MIT","homepage":"https://github.com/GyverLibs/Websocket.js#readme","repository":{"type":"git","url":"git+https://github.com/GyverLibs/Websocket.js.git"},"description":"Websocket API wrapper with reconnect","maintainers":[{"name":"gyver","email":"alex@alexgyver.ru"}],"readme":"# Websocket.js\nОбёртка на JS WebSocket\n- Автоматическое переподключение\n\n[demo](https://gyverlibs.github.io/Websocket.js/test/)\n\n> **Browser**: https://gyverlibs.github.io/Websocket.js/Websocket.min.js\n\n> **Node**: npm i @alexgyver/websocket\n\n## Дока\n```js\nconstructor(params = {});\nconfig(params = {});\n// ip: \"localhost\"\n// port: 81\n// path: \"/\"\n// url: undefined\n// proto: \"\"\n// secure: false\n// reconnect: 1000\n// connectTimeout: 5000\n// closeTimeout: 2000\n\nonbin(b);\nontext(t);\n\nonopen():\nonclose(code, reason, wasClean):\nonchange(s):\nonerror(e);\n\nopened();\n\nopen();\nclose();\n\nsendBin(data);\nsendText(text);\n```","readmeFilename":"README.md"}