diff --git a/README.md b/README.md index 390b1e9c..69f98fed 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ WebSocket that will automatically reconnect if the connection is closed. ## Install ```bash -npm install --save @bytemain/reconnecting-websocket +npm install --save @opensumi/reconnecting-websocket ``` ## Usage @@ -33,7 +33,7 @@ request :) ### Simple usage ```javascript -import ReconnectingWebSocket from '@bytemain/reconnecting-websocket'; +import ReconnectingWebSocket from '@opensumi/reconnecting-websocket'; const rws = new ReconnectingWebSocket('ws://my.site.com'); @@ -51,7 +51,7 @@ The `url` parameter will be resolved before connecting, possible types: - `() => Promise` ```javascript -import ReconnectingWebSocket from '@bytemain/reconnecting-websocket'; +import ReconnectingWebSocket from '@opensumi/reconnecting-websocket'; const urls = ['ws://my.site.com', 'ws://your.site.com', 'ws://their.site.com']; let urlIndex = 0; @@ -63,7 +63,7 @@ const rws = new ReconnectingWebSocket(urlProvider); ``` ```javascript -import ReconnectingWebSocket from '@bytemain/reconnecting-websocket'; +import ReconnectingWebSocket from '@opensumi/reconnecting-websocket'; // async url provider const urlProvider = async () => { @@ -79,7 +79,7 @@ const rws = new ReconnectingWebSocket(urlProvider); #### Sample with custom options ```javascript -import ReconnectingWebSocket from '@bytemain/reconnecting-websocket'; +import ReconnectingWebSocket from '@opensumi/reconnecting-websocket'; import WS from 'ws'; const options = { @@ -175,8 +175,10 @@ CLOSED 3 The connection is closed or couldn't be opened. MIT -This project was forked from [pladaria/reconnecting-websocket](https://github.com/pladaria/reconnecting-websocket). +This project was forked from +[pladaria/reconnecting-websocket](https://github.com/pladaria/reconnecting-websocket). -Because it seems that the original project is no longer maintained, I decided to fork it and continue to maintain it. +Because it seems that the original project is no longer maintained, I decided to fork it and +continue to maintain it. Thanks all original contributors for their work. diff --git a/package-lock.json b/package-lock.json index f3fcc4de..60b46fd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@bytemain/reconnecting-websocket", + "name": "@opensumi/reconnecting-websocket", "version": "4.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@bytemain/reconnecting-websocket", + "name": "@opensumi/reconnecting-websocket", "version": "4.4.0", "license": "MIT", "devDependencies": { @@ -21,8 +21,8 @@ "lint-staged": "^7.3.0", "opn-cli": "^3.1.0", "prettier": "^1.19.1", - "rollup": "^0.66.6", - "rollup-plugin-typescript2": "^0.23.0", + "rollup": "0.68.0", + "rollup-plugin-typescript2": "0.23.0", "ts-jest": "^25.2.0", "tslib": "^1.10.0", "tslint": "^5.20.1", @@ -10428,9 +10428,9 @@ } }, "node_modules/rollup": { - "version": "0.66.6", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.66.6.tgz", - "integrity": "sha512-J7/SWanrcb83vfIHqa8+aVVGzy457GcjA6GVZEnD0x2u4OnOd0Q1pCrEoNe8yLwM6z6LZP02zBT2uW0yh5TqOw==", + "version": "0.68.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.68.0.tgz", + "integrity": "sha512-UbmntCf8QBlOqJnwsNWQCI0oonHOgs9y1OLoO8BHf2r8gCyRLp3JzLHXARJpsNDAS08Qm3LDjzyWma5sqnCxDQ==", "dev": true, "dependencies": { "@types/estree": "0.0.39", diff --git a/package.json b/package.json index e7ece5dd..1ddef8b3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@bytemain/reconnecting-websocket", + "name": "@opensumi/reconnecting-websocket", "version": "4.4.0", "description": "Reconnecting WebSocket", "main": "./dist/reconnecting-websocket-cjs.js", @@ -25,7 +25,6 @@ "forever", "automatic" ], - "author": "bytemain ", "files": [ "dist/*" ], @@ -43,8 +42,8 @@ "lint-staged": "^7.3.0", "opn-cli": "^3.1.0", "prettier": "^1.19.1", - "rollup": "^0.66.6", - "rollup-plugin-typescript2": "^0.23.0", + "rollup": "0.68.0", + "rollup-plugin-typescript2": "0.23.0", "ts-jest": "^25.2.0", "tslib": "^1.10.0", "tslint": "^5.20.1", @@ -58,16 +57,16 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/bytemain/reconnecting-websocket.git" + "url": "git+https://github.com/opensumi/reconnecting-websocket.git" }, "bugs": { - "url": "https://github.com/bytemain/reconnecting-websocket/issues" + "url": "https://github.com/opensumi/reconnecting-websocket/issues" }, "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, - "homepage": "https://github.com/bytemain/reconnecting-websocket#readme", + "homepage": "https://github.com/opensumi/reconnecting-websocket#readme", "lint-staged": { "linters": { "*.{js,md,ts}": [ diff --git a/reconnecting-websocket.ts b/reconnecting-websocket.ts index ebb3676c..ee0fd540 100644 --- a/reconnecting-websocket.ts +++ b/reconnecting-websocket.ts @@ -2,7 +2,7 @@ * Reconnecting WebSocket * by Pedro Ladaria * https://github.com/pladaria/reconnecting-websocket - * https://github.com/bytemain/reconnecting-websocket + * https://github.com/opensumi/reconnecting-websocket * License MIT */