{"_id":"@nktkas/rews","_rev":"19-5d481a452eef1c4170b1d12744db1644","name":"@nktkas/rews","dist-tags":{"latest":"5.0.0"},"versions":{"0.1.0":{"name":"@nktkas/rews","version":"0.1.0","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@0.1.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"189fc39b5843b9515691547cf202d193b0fadf6f","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-0.1.0.tgz","fileCount":9,"integrity":"sha512-hEif/EiQtJ+FTEX5ZmEGzxQG5b8qfG5dlcXWIWv0k8jYu+Wu8YEmCzXY5i8GPPA01umQZ5Pv7YA933Wl8EbvdA==","signatures":[{"sig":"MEQCIAEGQCbDYBH5BMD+/Y9va9SVVGLPlJUv+AJVvSa1v1lhAiBTYllaCERCnfeRRn/b+CTsHjDqJsP6dwGhRLCQrPR7UQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38495},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"72ecbb09505b64c37a5d8175b77a3d44664c6022","scripts":{},"_npmUser":{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.1","description":"Drop-in WebSocket replacement that reconnects automatically and preserves all event listeners and buffered messages.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_0.1.0_1762167883355_0.6612584941118749","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@nktkas/rews","version":"1.0.0","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.0.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"f9c16bade57dfbce4cf68aa59b64737747673867","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.0.0.tgz","fileCount":9,"integrity":"sha512-SI/cWidGwPAA4CflvA+Ald+WiyYGf6A28MgEfGGy5HEStvl4Xeot5xiLfwzFVihy5/B6zMc19fcdaWKJdKA6Jg==","signatures":[{"sig":"MEQCIGChe9qU50Jd0a4rZrX0Vu6U08WdHhfdIfhrY0vgrx4dAiARQI/dAmUmiG3n+A0xIVLXG9i5oXy4B4nM8L4zgH9FFw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39546},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"42e89a0bc11c3e9012722404821b6851d1ea3450","scripts":{},"_npmUser":{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.1","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_1.0.0_1762228842432_0.9526944669075099","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@nktkas/rews","version":"1.1.0","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.1.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"bdfbb9f446ee601d4e93d53c82e4bdbd953f8f2d","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.1.0.tgz","fileCount":9,"integrity":"sha512-d3PkAMhHRhIkVu9tVfVGHA/S6vBCdc6130uuxmLfh813Ra4eTwmnRHOEvxY5AAZCpxKfEJ+nEC4Qr34T0YxY5w==","signatures":[{"sig":"MEYCIQCvKtohr79Pe3uyA7VA6tfZC8KtQW1GjvTXd904ZyVSAgIhANsyHIdIrXvdhdXaZ2LW+rYMoraoMaV6mCpU5wVxkPgt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":44231},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"d75dc1b3fa3391e80e8b2c4a33a41ff698e020d4","scripts":{},"_npmUser":{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.1","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_1.1.0_1762238709061_0.1650285135602818","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@nktkas/rews","version":"1.1.1","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.1.1","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"7083ebc75ea1aec4c3e3b2f44bd46b9089d67f38","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.1.1.tgz","fileCount":13,"integrity":"sha512-4rcRQCbewjA5yCL+3WxAangy4WcR3a+abWID+8hwwvV73NokMw5f9ukIG6Or+FPAZ62TONmuLcIGKEdync0Tvw==","signatures":[{"sig":"MEUCIQDOxYLjoSW1nsCZniAO2OkxLaRCLZ7M237ps+g8rCl6+QIgGwgH1vJU7t15Z7HBZUOoC/4cAwypvXvRLRatoRjqOCQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85872},"type":"module","engines":{"node":">=20.19.0"},"exports":"./mod.js","gitHead":"dcd90f718c6e1171b14f5e58eae64ca5e61104f6","scripts":{"test":"npx deno test -A && node --test","dev:fmt":"npx deno fmt && npx sort-package-json","dev:lint":"npx deno lint","dev:build":"npx tsc","dev:typecheck":"npx deno check --doc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.3","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/node":"^24.10.1"},"_npmOperationalInternal":{"tmp":"tmp/rews_1.1.1_1763170858444_0.6157321192128455","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@nktkas/rews","version":"1.2.0","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.2.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"268562f2b271dfa0959d925889269b2bc82f5fce","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.2.0.tgz","fileCount":13,"integrity":"sha512-Wje1pcGQNigRGPf4P3vLnP8qHzMO5oUXlM+VjyFUiPpFW7g4ueMHkUhSpykulxNb8MqG1pqhWDPwUfRqrdqGKA==","signatures":[{"sig":"MEQCIC9RSgIwyGmBQGvHwjz59InjdMGABDpSgYzgGCJpF7jIAiASUHE8x56Mh8bhw3ge44RFWfjvEVmUXeCO8IrZ5XGieg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":86462},"type":"module","engines":{"node":">=20.19.0"},"exports":"./mod.js","gitHead":"ac769abf9e55b04eb30157a0b4fdd090eabc92b5","scripts":{"test":"npx deno test -A && node --test","dev:fmt":"npx deno fmt && npx sort-package-json","dev:lint":"npx deno lint","dev:build":"npx tsc","dev:typecheck":"npx deno check --doc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.3","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/node":"^24.10.1"},"_npmOperationalInternal":{"tmp":"tmp/rews_1.2.0_1763189478475_0.7371560797830843","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@nktkas/rews","version":"1.2.1","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.2.1","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"beb90562f4dbbae50fbf04c36414ba6eb13fc5bf","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.2.1.tgz","fileCount":14,"integrity":"sha512-eoS2ucLwyfsHfWKu5zOUsIfHR1031WnEPsFAz6zceM/hMS+awjcnUmEnq61NMlg+GWp7hcwOLd9nvVVOS+0rNA==","signatures":[{"sig":"MEQCIDkC5BbQ/lYBbLk/FiVJXa9bnnIWuILloHZAVYmQu/uvAiBxVZLgDMEQpOf5lnLLuzfJo3bSZ40yKNY6PM6j1zsHEA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":90909},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"9b0fe08899ad8f463484c37b9de6e8fc1d04f626","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_1.2.1_1764164051582_0.01541000343751131","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@nktkas/rews","version":"1.2.2","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.2.2","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"df3a4ee36c1ae8761f3a9ba1decb6f9fb1a65257","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.2.2.tgz","fileCount":14,"integrity":"sha512-gO6igHgXEep4PApu7jKDlk232fWoBBmheQ4K3BkcZd+QsQ6PTo7F56jnz3kQxLWnHWHpXVh1vHO/VM6vTrorYg==","signatures":[{"sig":"MEYCIQCg6tzZClb9WG6i48O/3cGMAuZPnNgiEXrd52TEVSQR3wIhAPmsKNQBazT8+m/CPMEPaQBvulTkt8iLyatVDHcNcYAe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":93163},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"9f79519b955d6b52cd7544c8fcef24b80c234b34","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_1.2.2_1764514850999_0.6056768169159079","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@nktkas/rews","version":"1.2.3","keywords":["websocket","ws","reconnecting","reconnection","reconnect","retrying","automatic"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@1.2.3","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"e0f91757e402e04289e504c36f024b1b057c1fb5","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-1.2.3.tgz","fileCount":14,"integrity":"sha512-cpfcIlkUpYlbAI1cvfCTBCajWZfUM6gWyuCJXszECKxdetsU3vURKC8Sz//MDR6RWoULk9T48eJ+0agxT7yB1w==","signatures":[{"sig":"MEUCIEXDnG8kzz8fvB8ygWk00oprvpRZzB7tXs/gVdJQQpz8AiEAl5oGDLEWKI3OzgpT/HeF7rZDZ6IADa1GG+0PrgKZtHU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@1.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":94686},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"133d277549ef6ac9d78996eb8f9ac18d840d81cf","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"WebSocket with auto-reconnection — a drop-in replacement for the standard WebSocket.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_1.2.3_1766638828623_0.08542849848359624","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@nktkas/rews","version":"2.0.0","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@2.0.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"4086338e50488a75024d3223d5dbf146fa90a804","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-2.0.0.tgz","fileCount":14,"integrity":"sha512-jFShnBDPTVGF8wjEpI4Q1T3ECtLE47a0BfS/XCnI/XbTakJveumUzFexxGh4WRULIWKJplDZNvtqd0jHwRX2oQ==","signatures":[{"sig":"MEUCIBmcCeCK0fkRZfmwnp0Ip4T25GRYtXbZI5pQrPTnmCLNAiEA+0L6AZ64EeLKGCV0UIfZEO1kis9cItavCHiE/c2JE5o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":114804},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"92984001deafd1f09ad2b56e5d3b544ee500752c","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_2.0.0_1771722976000_0.6875230021463878","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@nktkas/rews","version":"2.0.1","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@2.0.1","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"f502b15645805b05dc01850621db60bf8e807408","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-2.0.1.tgz","fileCount":14,"integrity":"sha512-w8wpDSPfrlZeUwRo98lQg0YhNqUsmVWqXhvfwC2zp9FOkMA252x3GGjHii/Xcto3unnvIqOCbm+ZRHYOdZUeUw==","signatures":[{"sig":"MEYCIQCcobgxey6HABCTLnO3QYpUIYqpGnPfjTRmKN2FWHe8MAIhAJzbd23bmkzXm1M0TA0rVTBlllewtdTzb+VrgHCAPE5b","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":114324},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"c66b2253ead93d15631564d4b1fa2e3e88cd6a99","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.6.2","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_2.0.1_1771911404567_0.33144375597923803","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@nktkas/rews","version":"2.0.2","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@2.0.2","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"35366759687c14ff4f32c074b103c8f707170e5b","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-2.0.2.tgz","fileCount":14,"integrity":"sha512-Erc8E7Q/tr9kCcdOvtJxz3TjpowMZMfUx9cbBuWqtty126p84HlySmoXTfzhtpJy3Poov3e+a1FRe9Pwa7+Gcw==","signatures":[{"sig":"MEUCIDOY3zJ1vAGWg8GtHid+QmY23FTHnoXzfTiHdkN0HDGeAiEAy9c5yS9UU3EzMVbresNdRTbOwxrsT6nh4X9556c0T5k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":114844},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"149060ad59c1ec906be22bbdf65d47fc0c8227ac","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.8.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_2.0.2_1772296297128_0.29520189075812553","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@nktkas/rews","version":"2.1.0","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@2.1.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"367de1a03d68fd0f9c3c42bcda4329bd268dee3b","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-2.1.0.tgz","fileCount":14,"integrity":"sha512-FhYpsJynxPodOR801XQh5BdRBCqDfzfM4fxDVO8sIRlqJbPONfxoqkBfr69BkgDa8EpsyU4KW+qv9ow/zN2wAw==","signatures":[{"sig":"MEQCIC9q3dOg7sgHbBtNFqT1KsXKxn+26qI+zkls1ltbbdAPAiA4rHQc/oNpsrNAK+6cSk0OvaO/MxgyIdeUj8BscQe/5w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":116896},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=20.19.0"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"b13135bc877c08774eadb887375046adaa0ea59d","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.11.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_2.1.0_1775335470814_0.16355804480624814","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"@nktkas/rews","version":"2.1.1","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@2.1.1","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"f4b6258cc55edfae1da93df4bd736860056f45ba","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-2.1.1.tgz","fileCount":14,"integrity":"sha512-jB1dy7lQY3ygin1k9FyOioUvPq1QxoolUPDYXd7y73uF6QE+ntbpbMj96nO5Akl8g/b86l6w6HnWo0V5nhR4+g==","signatures":[{"sig":"MEUCIQCDksGcIgUQwQHerz3CVTdoBw4WsteMwwBvtghFlrKePQIgfTEAhBYt0XoWsBMQzRqxG1UmYDnwgkS5E8ydEi9+Xiw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":125465},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=18"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"d2c87f0ee7b5327a6f006a50b8dbd04e54ab9805","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.11.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_2.1.1_1775785637576_0.40054070816448184","host":"s3://npm-registry-packages-npm-production"}},"2.1.2":{"name":"@nktkas/rews","version":"2.1.2","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@2.1.2","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"585a43e78b3e49b43846b201d186f7f9cedaf5ce","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-2.1.2.tgz","fileCount":14,"integrity":"sha512-IuOhyKc9UYwJr2UD3f0m7w0NZepI3kkR+94jQi5sCS0lQFujsxRpjZlourZVH0y4U4ZfkV3JtJcqJl3zG0rZfQ==","signatures":[{"sig":"MEQCIQDfGEk64kRq6jtW79T4ztSGI2xVezFvxZKrOdmZF4M22QIfOxP8tY9maBrBmd7D8VSsharhki2EQV7xGIjsVVvOlQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@2.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":127067},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=18"},"exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"5e8b9cf240bb6e0a95d612c45423d19aaa94ae44","scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.13.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_2.1.2_1780597705212_0.38623702003201754","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@nktkas/rews","version":"3.0.0","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@3.0.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"5d97c8656de22523c3e0deac25d98c738f955b75","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-3.0.0.tgz","fileCount":6,"integrity":"sha512-RsAfl5qmDI1Yi1Zh4z9KCl9XMfTK2EDuWlxOcMUwadL/aKe9hNO1IIJKS686HsfNIBti2C3nN59N34BBDv6slg==","signatures":[{"sig":"MEYCIQCFj+SjD0cHnVgs8t/s9e/yL+JZoT0sFTZVXVevAaW/JwIhAIp9pO6upl9cBPihqf52+6c8EHCfxcE1l9ADDVhUvyO3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":69846},"main":"./esm/mod.js","type":"module","types":"./esm/mod.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./esm/mod.d.ts","default":"./esm/mod.js"}},"gitHead":"942d78fa315e08a25900beb081190cb412024efa","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.13.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_3.0.0_1780711415786_0.5758209300438049","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@nktkas/rews","version":"4.0.0","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@4.0.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"1f0571062c7cc38318b69a7ed128312a98787733","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-4.0.0.tgz","fileCount":6,"integrity":"sha512-yl0Q+s5ENGP0XvlPVjwcDGX+FkbyVoNeaYwgXI1d//eVNKkWPxAHn7BoTvc7KBz7IbZIb/9s0obkv+2x+QGyfA==","signatures":[{"sig":"MEYCIQCraymfrGHC7BLK3TmTkY61mC5oilh2NNJERsc2W0AsaAIhALA1D2TvkhxrErjFNu9KtOPE12P4S0LgEyAztRBqFBw5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":81868},"main":"./esm/mod.js","type":"module","types":"./esm/mod.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./esm/mod.d.ts","default":"./esm/mod.js"}},"gitHead":"78682bb1dddfc48ac39a50a8ff2e70414dbd6b36","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.13.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_4.0.0_1781106106186_0.24599754014264774","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"@nktkas/rews","version":"4.0.1","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@4.0.1","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"44be12cfd31f14080a381dfa0dba817fc6176963","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-4.0.1.tgz","fileCount":6,"integrity":"sha512-Oy6PI4Ptn8s2rGS/eypxP0gFdVBPVNsBl9S83SomUFvJZd/XasTBSCdv+qZbpW5lnz6qNV7iHTbUGmfmemA7UQ==","signatures":[{"sig":"MEUCIBVxDh2IHEgNLjdhJI+OmXc6vVCvhWp0lIbyIuFWGpHAAiEA4wxgVdVHlLMd+JhmG6rv8vVUSPOHbuFw3VX6zMZjeKI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@4.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":82921},"main":"./esm/mod.js","type":"module","types":"./esm/mod.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./esm/mod.d.ts","default":"./esm/mod.js"}},"gitHead":"5908083f2e0b8f00edbb788c371e8a9daa454377","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.13.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_4.0.1_1781110728562_0.4004826161594679","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@nktkas/rews","version":"4.1.0","keywords":["websocket","ws","reconnect","retry"],"author":{"url":"https://github.com/nktkas","name":"nktkas","email":"github.turk9@passmail.net"},"license":"MIT","_id":"@nktkas/rews@4.1.0","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"dist":{"shasum":"c207835d95fc0b5ad7ae2bc0f1f7248b8bb2c880","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-4.1.0.tgz","fileCount":6,"integrity":"sha512-lPcTIPD2AE8JsJgnI+YGn9hzOhZHW3E0hrzDNUpyuVP5d1NERNz7EugR1IxW4Ly7QsM9/WmVeLif4olZsKVKjQ==","signatures":[{"sig":"MEUCIQDf3n7iASC+eTuGq/6eF0+ciBrIlYXB0SzgrUYXivZxAAIgVWyFTiWUXOpVABC6Gpwgsaw+RKUDZyoRHXiNnZ/4UPQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@4.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":111486},"main":"./esm/mod.js","type":"module","types":"./esm/mod.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./esm/mod.d.ts","default":"./esm/mod.js"}},"gitHead":"453e8c017e9b079644fd675209ea47a3c334a1d5","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"repository":{"url":"git+https://github.com/nktkas/rews.git","type":"git"},"_npmVersion":"11.16.0","description":"Drop-in WebSocket replacement with automatic reconnection.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rews_4.1.0_1783355312460_0.08244214831571206","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@nktkas/rews","version":"5.0.0","description":"Drop-in WebSocket replacement with automatic reconnection.","keywords":["websocket","ws","reconnect","retry"],"homepage":"https://github.com/nktkas/rews","bugs":{"url":"https://github.com/nktkas/rews/issues"},"repository":{"type":"git","url":"git+https://github.com/nktkas/rews.git"},"license":"MIT","author":{"name":"nktkas","email":"github.turk9@passmail.net","url":"https://github.com/nktkas"},"sideEffects":false,"type":"module","exports":{".":{"types":"./esm/mod.d.ts","default":"./esm/mod.js"}},"main":"./esm/mod.js","types":"./esm/mod.d.ts","engines":{"node":">=22.12.0"},"gitHead":"45804ad6b916f3367a218400d8504054627405e4","_id":"@nktkas/rews@5.0.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-E8inUr4AXuuymk5FFhV8ejsrVOKZhnocdoipMCJVs0A+6Ozucdj61e1HzuB2oA2BKnElaE+ITGg0vfaAFsf+ig==","shasum":"d4dbc76f6d51a612db051ab009f9f3a97586d417","tarball":"https://registry.npmjs.org/@nktkas/rews/-/rews-5.0.0.tgz","fileCount":6,"unpackedSize":107578,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nktkas%2frews@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCCcImEJ05TA98m6YUxBGXl9KTTJmWj3//hOIRAE+vQJgIgYzuHMUfxXGUMfuPOtZNTikQ1jsDycaZ0NzMxz592f5s="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9a99a10-a2bb-4f1f-a10b-e0a8c0a061e8"}},"directories":{},"maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rews_5.0.0_1788214317596_0.112673569907638"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-03T11:04:42.934Z","modified":"2026-08-31T22:11:58.143Z","0.1.0":"2025-11-03T11:04:43.517Z","1.0.0":"2025-11-04T04:00:42.657Z","1.1.0":"2025-11-04T06:45:09.251Z","1.1.1":"2025-11-15T01:40:58.676Z","1.2.0":"2025-11-15T06:51:18.687Z","1.2.1":"2025-11-26T13:34:11.782Z","1.2.2":"2025-11-30T15:00:51.208Z","1.2.3":"2025-12-25T05:00:28.786Z","2.0.0":"2026-02-22T01:16:16.174Z","2.0.1":"2026-02-24T05:36:44.712Z","2.0.2":"2026-02-28T16:31:37.257Z","2.1.0":"2026-04-04T20:44:30.971Z","2.1.1":"2026-04-10T01:47:17.730Z","2.1.2":"2026-06-04T18:28:25.382Z","3.0.0":"2026-06-06T02:03:35.941Z","4.0.0":"2026-06-10T15:41:46.345Z","4.0.1":"2026-06-10T16:58:48.683Z","4.1.0":"2026-07-06T16:28:32.602Z","5.0.0":"2026-08-31T22:11:57.766Z"},"bugs":{"url":"https://github.com/nktkas/rews/issues"},"author":{"name":"nktkas","email":"github.turk9@passmail.net","url":"https://github.com/nktkas"},"license":"MIT","homepage":"https://github.com/nktkas/rews","keywords":["websocket","ws","reconnect","retry"],"repository":{"type":"git","url":"git+https://github.com/nktkas/rews.git"},"description":"Drop-in WebSocket replacement with automatic reconnection.","maintainers":[{"name":"nktkas","email":"npmjs.kvd21@passinbox.com"}],"readme":"# @nktkas/rews\n\n[![npm](https://img.shields.io/npm/v/@nktkas/rews)](https://www.npmjs.com/package/@nktkas/rews)\n[![JSR](https://jsr.io/badges/@nktkas/rews)](https://jsr.io/@nktkas/rews)\n[![bundlejs](https://img.shields.io/bundlejs/size/@nktkas/rews)](https://bundlejs.com/?q=@nktkas/rews)\n\nDrop-in [`WebSocket`](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) replacement with automatic\nreconnection.\n\n---\n\n**Without rews** — manual reconnection, listener re-attachment, message queuing:\n\n```ts\nlet ws: WebSocket;\nlet attempts = 0;\nconst queue: string[] = [];\nconst onMessage = (e: MessageEvent) => console.log(e.data);\n\nfunction connect() {\n  ws = new WebSocket(\"wss://example.com\");\n  ws.addEventListener(\"message\", onMessage);\n  ws.onopen = () => {\n    attempts = 0;\n    while (queue.length) ws.send(queue.shift()!);\n  };\n  ws.onclose = () => {\n    if (attempts++ < 3) setTimeout(connect, 1000);\n  };\n}\n\nfunction send(data: string) {\n  ws.readyState === WebSocket.OPEN ? ws.send(data) : queue.push(data);\n}\n\nconnect();\nsend(\"hello\");\n```\n\n**With rews** — standard `WebSocket` API, no changes needed:\n\n```ts\nimport { ReconnectingWebSocket } from \"@nktkas/rews\";\n\nconst ws = new ReconnectingWebSocket(\"wss://example.com\");\nws.addEventListener(\"message\", (e) => console.log(e.data));\nws.send(\"hello\");\n```\n\n## Features\n\n- **Drop-in replacement** — standard `WebSocket` API, swap one line\n- **Auto-reconnection** — configurable retries and delay strategy\n- **Message buffering** — `send()` queues data while offline, flushes on reconnect\n- **Persistent listeners** — `addEventListener` and `on*` handlers survive reconnections\n- **Dynamic URL & protocols** — resolve fresh values on each reconnection\n- **Zero dependencies** — works in Node.js, Deno, Bun, and browsers\n\n## Installation\n\n```sh\n# Node.js 22.12+ / React Native 0.86+\nnpm i @nktkas/rews\n\n# Deno 2+\ndeno add jsr:@nktkas/rews\n\n# Bun 1+\nbun add @nktkas/rews\n```\n\n> React Native below 0.86 requires `Event` / `EventTarget` polyfills. On all versions, React Native's built-in\n> `AbortController` polyfill drops `terminationSignal.reason`.\n\n## Options\n\n```ts\ninterface ReconnectingWebSocketOptions {\n  /** Maximum number of consecutive failed reconnection attempts. @default Infinity */\n  maxRetries?: number;\n  /** Maximum number of messages buffered while disconnected. @default Infinity */\n  maxEnqueuedMessages?: number;\n  /** Connection timeout in ms (null to disable). @default 10_000 */\n  connectionTimeout?: number | null;\n  /** Time in ms a connection must stay open before the retry counter resets. @default 3_000 */\n  stableTimeout?: number;\n  /** Delay before reconnection in ms, or a function of attempt number. @default exponential backoff with jitter, max 10s */\n  reconnectionDelay?: number | ((attempt: number) => number);\n  /** Decide whether to reconnect after a non-user closure. @default () => true */\n  shouldReconnect?: (event: CloseEvent, attempt: number) => boolean;\n}\n```\n\n## Beyond Standard WebSocket\n\n### Dynamic URL & Protocols\n\n`url` and `protocols` accept functions (sync or async), invoked on each reconnection:\n\n```ts\nconst ws = new ReconnectingWebSocket(\n  () => `wss://example.com?token=${getToken()}`,\n  () => [\"v2\"],\n);\n```\n\nErrors thrown by these functions count as failed connection attempts and follow the normal retry flow. The same applies\nto a permanently invalid URL: with the default `maxRetries: Infinity` it is retried forever, each close event carrying\nthe error in its `reason`.\n\n### Event Lifecycle\n\nStandard `open`, `close`, `error`, and `message` events fire on **every** connection cycle — not just the first one. A\nsingle `ReconnectingWebSocket` instance may emit multiple `open`/`close` pairs over its lifetime as it reconnects.\n\n```ts\nws.addEventListener(\"open\", () => console.log(\"connected\")); // fires on each (re)connection\nws.addEventListener(\"close\", () => console.log(\"disconnected\")); // fires on each disconnection\n\n// use { once: true } if you only need the first occurrence\nws.addEventListener(\"open\", () => init(), { once: true });\n```\n\n### readyState\n\n`CLOSED` means permanently terminated. While reconnecting — a retry pause, a connection attempt, a url/protocols factory\nawait — `readyState` is `CONNECTING`; `CLOSING` is never reported.\n\n### retryCount\n\nNumber of consecutive failed reconnection attempts; resets after a connection stays open for `stableTimeout`.\n\n### Termination\n\n`terminationSignal` is an [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that aborts when\nthe connection is permanently closed. The abort reason is always a `ReconnectingWebSocketError`:\n\n| Code                    | Description                                              |\n| ----------------------- | -------------------------------------------------------- |\n| `RECONNECTION_LIMIT`    | Max retries exceeded                                     |\n| `RECONNECTION_DECLINED` | `shouldReconnect` returned `false`                       |\n| `TERMINATED_BY_USER`    | `close()` called                                         |\n| `UNKNOWN_ERROR`         | Unhandled error in `reconnectionDelay`/`shouldReconnect` |\n\n```ts\nws.terminationSignal.aborted; // boolean\nws.terminationSignal.reason; // ReconnectingWebSocketError, once aborted\n\nws.terminationSignal.addEventListener(\"abort\", () => {\n  ws.terminationSignal.reason.code; // ReconnectingWebSocketErrorCode\n  ws.terminationSignal.reason.cause; // original error, if any\n});\n```\n\nBeing a standard `AbortSignal`, it composes with `AbortSignal.any()`, `fetch()`, `addEventListener(..., { signal })`,\nand other platform APIs.\n\n### Closing Behavior\n\n```ts\nws.close(code?, reason?); // permanently close — the standard WebSocket method\nws.reconnect(code?, reason?); // drop the current connection and reconnect immediately\n```\n\n`reconnect()` skips the current retry delay, is not counted towards `maxRetries`, and does nothing once the instance is\npermanently terminated.\n\n## License\n\n**@nktkas/rews** is licensed under the [MIT License](LICENSE).\n\nCopyright © 2025-present [nktkas](https://github.com/nktkas) and\n[contributors](https://github.com/nktkas/rews/graphs/contributors).\n","readmeFilename":"README.md"}