Skip to content

Commit

Permalink
websocket: Remove ws dependency (#1052)
Browse files Browse the repository at this point in the history
And improve `sendMany` for WebSocket
  • Loading branch information
sonnyp authored Jan 9, 2025
1 parent 649ac4a commit 3624f9e
Show file tree
Hide file tree
Showing 40 changed files with 111 additions and 130 deletions.
74 changes: 37 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"selfsigned": "^2.4.1"
},
"scripts": {
"test": "npx jest",
"e2e": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx jest --runInBand --config e2e.config.cjs",
"test": "node --experimental-websocket ./node_modules/.bin/jest",
"e2e": "NODE_TLS_REJECT_UNAUTHORIZED=0 node --experimental-websocket ./node_modules/.bin/jest --runInBand --config e2e.config.cjs",
"preversion": "make bundle"
},
"engines": {
"node": ">= 20"
"node": ">= 20.10"
},
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"base64"
],
"engines": {
"node": ">= 20"
"node": ">= 20.10"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"saslmechanisms": "^0.1.1"
},
"engines": {
"node": ">= 20"
"node": ">= 20.10"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 0 additions & 7 deletions packages/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,3 @@ PLAIN should only be used over secure WebSocket (`wss://)`, direct TLS (`xmpps:`
- ☐ : Optional
- ✗ : Unavailable
- ✔ : Included

## Common issues

<details>
<summary><strong>Unable to resolve module</strong></summary>
<p>If you are using an older React Native version, please require/import <code>@xmpp/client/reat-native</code> instead of <code>@xmpp/client</code>.</p>
</details>
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@xmpp/sasl-scram-sha-1": false
},
"engines": {
"node": ">= 20"
"node": ">= 20.10"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/component-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@xmpp/xml": "^0.14.0"
},
"engines": {
"node": ">= 20"
"node": ">= 20.10"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@xmpp/reconnect": "^0.14.0"
},
"engines": {
"node": ">= 20"
"node": ">= 20.10"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 3624f9e

Please sign in to comment.