- Add NestJS WebSocket Gateway with Socket.IO for real-time communication - Create client SDK (GatewayClient) supporting both browser and Node.js - Implement device registration and point-to-point message routing - Add action types: request/response (RPC), stream (for chat messages) - Integrate Pino logger for structured logging - Configure heartbeat detection (pingInterval/pingTimeout) - Use UUID v7 for time-ordered message IDs Gateway features: - Device registration with deviceId and deviceType (client/agent) - Message routing between devices via Gateway - HTTP API endpoints (/ping, /broadcast) - Auto-reconnect support in client SDK Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
1,008 B
JSON
40 lines
1,008 B
JSON
{
|
|
"name": "super-multica",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"dev": "tsx src/index.ts",
|
|
"dev:gateway": "tsx --watch src/gateway/main.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"packageManager": "pnpm@10.16.1",
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.10",
|
|
"@types/uuid": "^11.0.0",
|
|
"socket.io-client": "^4.8.3",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"dependencies": {
|
|
"@nestjs/common": "^11.1.12",
|
|
"@nestjs/core": "^11.1.12",
|
|
"@nestjs/platform-express": "^11.1.12",
|
|
"@nestjs/platform-socket.io": "^11.1.12",
|
|
"@nestjs/websockets": "^11.1.12",
|
|
"nestjs-pino": "^4.5.0",
|
|
"pino": "^10.3.0",
|
|
"pino-http": "^11.0.0",
|
|
"pino-pretty": "^13.1.3",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.2",
|
|
"socket.io": "^4.8.3",
|
|
"uuid": "^13.0.0"
|
|
}
|
|
}
|