Skip to content

Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.

TypeScript

fix(ws): upgrade dependency and cap payloads (#38)

LILACf3537dea56d7
diff --git a/package-lock.json b/package-lock.json
index 97ca403..a419f40 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -59,7 +59,7 @@
"tailwind-merge": "^2.5.4",
"tsx": "^4.21.0",
"unist-util-visit": "^5.1.0",
- "ws": "^8.20.0",
+ "ws": "^8.21.3",
"y-protocols": "^1.0.7",
"yjs": "^13.6.30",
"zustand": "^5.0.1"
@@ -16083,9 +16083,9 @@
"license": "ISC"
},
"node_modules/ws": {
- "version": "8.20.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
- "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
+ "version": "8.21.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
+ "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
diff --git a/package.json b/package.json
index 412e513..1b5d0a0 100644
--- a/package.json
+++ b/package.json
@@ -99,7 +99,7 @@
"tailwind-merge": "^2.5.4",
"tsx": "^4.21.0",
"unist-util-visit": "^5.1.0",
- "ws": "^8.20.0",
+ "ws": "^8.21.3",
"y-protocols": "^1.0.7",
"yjs": "^13.6.30",
"zustand": "^5.0.1"
diff --git a/server/src/ws.ts b/server/src/ws.ts
index 32c2917..be983b5 100644
--- a/server/src/ws.ts
+++ b/server/src/ws.ts
@@ -494,7 +494,7 @@ async function resolveDisplayName(id: string, companyId: string): Promise<string
}
export function attachWebSocket(httpServer: Server) {
- const wss = new WebSocketServer({ server: httpServer, path: '/ws' })
+ const wss = new WebSocketServer({ server: httpServer, path: '/ws', maxPayload: 4 * 1024 * 1024 })
wss.on('connection', async (ws, req) => {
const ip = req.socket.remoteAddress