{"versions":{"7.0.0":{"name":"@d-fischer/isomorphic-ws","version":"7.0.0","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"browser":{"require":"./browser.js","import":"./browser.mjs"},"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"^8.2.0"},"devDependencies":{"@types/ws":"^8.2.0","ws":"^8.2.2"},"gitHead":"537a6cae3ef83dd8560a28a3cc8f3e91b02ee767","_id":"@d-fischer/isomorphic-ws@7.0.0","_nodeVersion":"14.17.4","_npmVersion":"7.20.5","dist":{"shasum":"ea578e6b8ab6ae9e0c44618a5a8c87b97c92358e","size":2397,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-7.0.0.tgz","integrity":"sha512-bydCy1tKvPKvyF0KeDvN1aiAZA4CzQVa2gHifNQczW9Czl89vZ4QHnJMjUcTboWKecbnz5mGiM9PjKA1Xx2Dyg=="},"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_7.0.0_1632762572795_0.017409654784566353"},"_hasShrinkwrap":false,"publish_time":1632762572921,"_cnpm_publish_time":1632762572921,"_cnpmcore_publish_time":"2021-12-17T00:31:39.804Z","contributors":[]},"6.0.0":{"name":"@d-fischer/isomorphic-ws","version":"6.0.0","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"browser":{"require":"./browser.js","import":"./browser.mjs"},"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"*"},"gitHead":"77cdc586cb93ff5251655b8b7de936e0cb6880d7","_id":"@d-fischer/isomorphic-ws@6.0.0","_nodeVersion":"14.16.0","_npmVersion":"7.19.0","dist":{"shasum":"4ef0062f7c735d202a4901bac67e3b83bc0b80d1","size":2390,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-6.0.0.tgz","integrity":"sha512-xRhs0tSFxDAbKIxsfXzSz9+KAsz2P64NesfopsqQLf70adKLt+J8am1IFPssN1GlbDnXF15kzrkc8cogpk02gA=="},"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_6.0.0_1626722726056_0.5603445519887278"},"_hasShrinkwrap":false,"publish_time":1626722726231,"_cnpm_publish_time":1626722726231,"_cnpmcore_publish_time":"2021-12-17T00:31:40.013Z","contributors":[]},"5.0.4":{"name":"@d-fischer/isomorphic-ws","version":"5.0.4","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"browser":{"require":"./browser.js","import":"./browser.mjs"},"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"*"},"gitHead":"4014e78d782d1a1b324c258760dfba51c0438e98","_id":"@d-fischer/isomorphic-ws@5.0.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"d500735c69a9d0db7e135502eaeb30e6bc4c6532","size":2255,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-5.0.4.tgz","integrity":"sha512-iNX2+kupoYtTg5snSzvqpa+rgQmnxWbngU5/uV0y4PyuJHJIoWJuTa/KPh+3ruW4UtloqhCpGe8pyb0EGjt9xQ=="},"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_5.0.4_1622492934973_0.7817835457191509"},"_hasShrinkwrap":false,"publish_time":1622492935129,"_cnpm_publish_time":1622492935129,"_cnpmcore_publish_time":"2021-12-17T00:31:40.288Z","contributors":[]},"5.0.3":{"name":"@d-fischer/isomorphic-ws","version":"5.0.3","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"*"},"gitHead":"67fe3bf524e6ddcbeb799f9a379618a001b7cda4","_id":"@d-fischer/isomorphic-ws@5.0.3","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"ad3a037b873700644a142664f9612155f256a3d4","size":2239,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-5.0.3.tgz","integrity":"sha512-jT9J/ehLgPXMW3akVRpIJ7CeMKJLH/gCw+PksATT2lN5B5ceEE+am111P2niyEQKxKGYpHrsCEMmK+IdS+E/dQ=="},"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_5.0.3_1610393317334_0.3623178065109831"},"_hasShrinkwrap":false,"publish_time":1610393317452,"_cnpm_publish_time":1610393317452,"_cnpmcore_publish_time":"2021-12-17T00:31:40.504Z","contributors":[]},"5.0.2":{"name":"@d-fischer/isomorphic-ws","version":"5.0.2","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"*"},"gitHead":"3736cbc7f02e17c9e951c14d671744aea99914c8","_id":"@d-fischer/isomorphic-ws@5.0.2","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"91bb78f520b6c9e4a820eb80c9be5dfeebdb08ed","size":2238,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-5.0.2.tgz","integrity":"sha512-FeULiS37jd5M7nroqUw7kfnntlIW6Kilr2kn38Xjoyw/WZqwdxSAihJ2Y09aoDamrVKEW9/flbo2/y/VwHVZ6g=="},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_5.0.2_1588197814121_0.5874215093823072"},"_hasShrinkwrap":false,"publish_time":1588197814275,"_cnpm_publish_time":1588197814275,"_cnpmcore_publish_time":"2021-12-17T00:31:40.733Z","contributors":[]},"5.0.1":{"name":"@d-fischer/isomorphic-ws","version":"5.0.1","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"*"},"gitHead":"973d6bb57a982a7e02b7c005584deac7efb4a797","_id":"@d-fischer/isomorphic-ws@5.0.1","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"shasum":"f460cc2ba47eeffd9841d0769946a3f2d2e4e48c","size":2255,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-5.0.1.tgz","integrity":"sha512-/xNQzZt87z+USPKb9QocOGfT2NJjwNsdwwXYo1hshc2dExMvs3p/eC/DXt5VnHc73/WwKzEYJVPFXnvgTVum3A=="},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_5.0.1_1586806831173_0.29039344815147317"},"_hasShrinkwrap":false,"publish_time":1586806831311,"_cnpm_publish_time":1586806831311,"_cnpmcore_publish_time":"2021-12-17T00:31:40.968Z","contributors":[]},"5.0.0":{"name":"@d-fischer/isomorphic-ws","version":"5.0.0","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"*"},"gitHead":"11d7d8d2883d873fd6ef63ea474be94413ffb925","_id":"@d-fischer/isomorphic-ws@5.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"shasum":"571626791126331c28b933484768c0d87a12a5bb","size":2242,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz","integrity":"sha512-FLA2inwYadShbIerr2jNlw4OdbyfOx5GlVzyz0lnP1ajuXgvmgxBAkHhITPc6qP9ifuHNiqqKpAoyCMNhz6tkg=="},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_5.0.0_1586806410504_0.04366303159613216"},"_hasShrinkwrap":false,"publish_time":1586806410670,"_cnpm_publish_time":1586806410670,"_cnpmcore_publish_time":"2021-12-17T00:31:41.180Z","contributors":[]},"7.0.1":{"name":"@d-fischer/isomorphic-ws","version":"7.0.1","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"types":"./lib/index.d.ts","browser":{"require":"./browser.js","import":"./browser.mjs"},"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"^8.2.0"},"devDependencies":{"@types/ws":"^8.2.0","ws":"^8.2.2"},"gitHead":"f53fac87db2a200ad0ccdb663f4db3db3c2c2b88","_id":"@d-fischer/isomorphic-ws@7.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-9/ObS1H4E//UVW7yRA1qDalg6GGWyRdWDg8bJTl2h/MirJBLfo41AdoSaNrupdRaj3FCM0Ubf1gp0WcHRAG7Sg==","shasum":"6d6b31690d127849739f0cfe03ec70eda02e02cd","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-7.0.1.tgz","fileCount":8,"unpackedSize":5623,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0vHOOQs/3YnNfMeCrbSBl4L7kc4BMHX/w8THH2jfcUQIhAM5HpY9t7zYSJ2AYTl1kSYp6WWJ1sO9XC1MW/VQsyZ50"}],"size":2410},"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_7.0.1_1702201031511_0.7395621819927414"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-10T09:37:11.697Z","publish_time":1702201031697,"_source_registry_name":"default","contributors":[]},"7.0.2":{"name":"@d-fischer/isomorphic-ws","version":"7.0.2","description":"Isomorphic implementation of WebSocket","main":"node","browser":"browser","exports":{".":{"types":"./index.d.ts","browser":{"require":"./browser.js","import":"./browser.mjs"},"require":"./node.js","import":"./node.mjs"}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/isomorphic-ws.git"},"keywords":["browser","browsers","isomorphic","node","websocket","ws"],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/isomorphic-ws/issues"},"homepage":"https://github.com/d-fischer/isomorphic-ws#readme","peerDependencies":{"ws":"^8.2.0"},"devDependencies":{"@types/ws":"^8.2.0","ws":"^8.2.2"},"_id":"@d-fischer/isomorphic-ws@7.0.2","gitHead":"8e13a5219091536779562c10c0eef90c50e626eb","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-xK+qIJUF0ne3dsjq5Y3BviQ4M+gx9dzkN+dPP7abBMje4YRfow+X9jBgeEoTe5e+Q6+8hI9R0b37Okkk8Vf0hQ==","shasum":"444eeb82c2f79566ec5e055fab1e2e43b578330c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@d-fischer/isomorphic-ws/-/isomorphic-ws-7.0.2.tgz","fileCount":8,"unpackedSize":5640,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJWah/JFn05fk7QOWGf1rj8hcW7R4GwvQajwnC1CHXnAiBsR+a46H/iWRp7nSKGyMQghjorIytaZ7qyrg0ay6Wwxw=="}],"size":2412},"_npmUser":{"name":"anonymous","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-ws_7.0.2_1708464533663_0.0836984909004348"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-20T21:28:53.822Z","publish_time":1708464533822,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"7.0.2"},"name":"@d-fischer/isomorphic-ws","time":{"created":"2022-01-27T09:06:46.176Z","modified":"2024-02-20T21:30:53.262Z","7.0.0":"2021-09-27T17:09:32.921Z","6.0.0":"2021-07-19T19:25:26.231Z","5.0.4":"2021-05-31T20:28:55.129Z","5.0.3":"2021-01-11T19:28:37.452Z","5.0.2":"2020-04-29T22:03:34.275Z","5.0.1":"2020-04-13T19:40:31.311Z","5.0.0":"2020-04-13T19:33:30.670Z","7.0.1":"2023-12-10T09:37:11.697Z","7.0.2":"2024-02-20T21:28:53.822Z"},"readme":"# isomorphic-ws\n\nIsomorphic implementation of WebSocket.\n\nIt uses:\n- [ws](https://github.com/websockets/ws) on Node\n- [global.WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) in browsers\n\n## Limitations\n\nBefore using this module you should know that\n[`ws`](https://github.com/websockets/ws/blob/master/doc/ws.md#class-websocket)\nis not perfectly API compatible with\n[WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket),\nyou should always test your code against both Node and browsers.\n\nSome major differences:\n\n- no `Server` implementation in browsers\n- no support for the constructor\n  [`options`](https://github.com/websockets/ws/blob/master/doc/ws.md#new-websocketaddress-protocols-options)\n  argument in browsers\n\n## Usage\n\nYou need to install both this package and [ws](https://github.com/websockets/ws):\n\n```\n> npm i @d-fischer/isomorphic-ws ws\n```\n\nThen just require this package:\n\n```js\nconst WebSocket = require('@d-fischer/isomorphic-ws')\n\nconst ws = new WebSocket('wss://echo.websocket.org/');\n\nws.onopen = function open() {\n  console.log('connected');\n  ws.send(Date.now());\n};\n\nws.onclose = function close() {\n  console.log('disconnected');\n};\n\nws.onmessage = function incoming(data) {\n  console.log(`Roundtrip time: ${Date.now() - data.data} ms`);\n\n  setTimeout(function timeout() {\n    ws.send(Date.now());\n  }, 500);\n};\n```\n\n## License\n\n[MIT](LICENSE)","users":{}}