Skip to content

Commit 3baf223

Browse files
chore: remove dead ws dependencies and add helpful error for ws:// URLs
1 parent e1ce74a commit 3baf223

4 files changed

Lines changed: 2 additions & 37 deletions

File tree

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"@types/express-serve-static-core": "catalog:devTools",
6161
"@types/node": "^24.10.1",
6262
"@types/supertest": "catalog:devTools",
63-
"@types/ws": "catalog:devTools",
6463
"@typescript/native-preview": "catalog:devTools",
6564
"eslint": "catalog:devTools",
6665
"eslint-config-prettier": "catalog:devTools",
@@ -75,7 +74,6 @@
7574
"typescript": "catalog:devTools",
7675
"typescript-eslint": "catalog:devTools",
7776
"vitest": "catalog:devTools",
78-
"ws": "catalog:devTools",
7977
"zod": "catalog:runtimeShared"
8078
},
8179
"resolutions": {

pnpm-lock.yaml

Lines changed: 0 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ catalogs:
1818
'@types/express': ^5.0.6
1919
'@types/express-serve-static-core': ^5.1.0
2020
'@types/supertest': ^6.0.2
21-
'@types/ws': ^8.5.12
2221
'@typescript/native-preview': ^7.0.0-dev.20251217.1
2322
eslint: ^9.39.2
2423
eslint-config-prettier: ^10.1.8
@@ -32,7 +31,6 @@ catalogs:
3231
typescript-eslint: ^8.48.1
3332
vite-tsconfig-paths: ^5.1.4
3433
vitest: ^4.0.15
35-
ws: ^8.18.0
3634
runtimeClientOnly:
3735
cross-spawn: ^7.0.5
3836
eventsource: ^3.0.2

scripts/cli.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ async function runClient(url_or_command: string, args: string[]) {
3131

3232
if (url?.protocol === 'http:' || url?.protocol === 'https:') {
3333
clientTransport = new SSEClientTransport(new URL(url_or_command));
34+
} else if (url?.protocol === 'ws:' || url?.protocol === 'wss:') {
35+
throw new Error('WebSocket URLs are no longer supported. Use http(s) or stdio instead.');
3436
} else {
3537
clientTransport = new StdioClientTransport({
3638
command: url_or_command,

0 commit comments

Comments
 (0)