UNPKG

@essentialai/cogent-bridge

Version:

Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.

19 lines • 676 B
// Client-side duplicate of server/src/ws/frames.ts type definitions. // Keep in sync. Will move to @essentialai/cogent in Phase 7. /** * WebSocket close codes for different disconnect scenarios. * Uses standard RFC 6455 / IANA-registered codes. */ export const WsCloseCode = { /** Clean client-initiated close. */ NORMAL_CLOSURE: 1000, /** Heartbeat timeout -- 3 missed pings (90s). */ HEARTBEAT_TIMEOUT: 1001, /** Invalid frame data from client. */ UNSUPPORTED_DATA: 1003, /** Unexpected server error. */ INTERNAL_ERROR: 1011, /** Server shutting down via SIGTERM. */ SERVICE_RESTART: 1012, }; //# sourceMappingURL=ws-frames.js.map