Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
docs/v2
.env
.nyc_output
coverage/
3,055 changes: 1,970 additions & 1,085 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
"repository": "https://github.com/supabase/realtime-js",
"author": "Supabase",
"license": "MIT",
"type": "module",
"scripts": {
"clean": "rimraf dist docs/v2",
"format": "prettier --write \"{src,test}/**/*.ts\"",
"build": "run-s clean format build:*",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"mocha": "node -r esm node_modules/.bin/mocha ./test/**/*.js -r jsdom-global/register",
"test": "run-s clean build mocha",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage",
"docs": "typedoc src/index.ts --out docs/v2",
"docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts"
},
Expand All @@ -41,18 +43,19 @@
"ws": "^8.14.2"
},
"devDependencies": {
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^7.0.0",
"esm": "^3.2.25",
"jsdom": "^16.7.0",
"jsdom-global": "3.0.0",
"mocha": "^8.0.1",
"mock-socket": "^9.0.3",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"sinon": "^9.0.2",
"typedoc": "^0.22.16",
"typescript": "^4.0.3"
"typescript": "^4.0.3",
"vitest": "^2.0.5"
}
}
1 change: 0 additions & 1 deletion src/RealtimeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export default class RealtimeClient {
})
return
}

if (NATIVE_WEBSOCKET_AVAILABLE) {
this.conn = new WebSocket(this._endPointURL())
this.setupConnection()
Expand Down
Loading