- 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>
8 lines
196 B
TypeScript
8 lines
196 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { EventsGateway } from "./events.gateway.js";
|
|
|
|
@Module({
|
|
providers: [EventsGateway],
|
|
exports: [EventsGateway],
|
|
})
|
|
export class GatewayModule {}
|