
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
17 lines
1022 B
JavaScript
17 lines
1022 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ERROR_EVENT = exports.CLOSE_EVENT = exports.DISCONNECT_EVENT = exports.CONNECTION_EVENT = exports.PARAM_ARGS_METADATA = exports.GATEWAY_OPTIONS = exports.PORT_METADATA = exports.NAMESPACE_METADATA = exports.GATEWAY_METADATA = exports.GATEWAY_SERVER_METADATA = exports.MESSAGE_METADATA = exports.MESSAGE_MAPPING_METADATA = void 0;
|
|
const constants_1 = require("@nestjs/common/constants");
|
|
exports.MESSAGE_MAPPING_METADATA = 'websockets:message_mapping';
|
|
exports.MESSAGE_METADATA = 'message';
|
|
exports.GATEWAY_SERVER_METADATA = 'websockets:is_socket';
|
|
exports.GATEWAY_METADATA = 'websockets:is_gateway';
|
|
exports.NAMESPACE_METADATA = 'namespace';
|
|
exports.PORT_METADATA = 'port';
|
|
exports.GATEWAY_OPTIONS = 'websockets:gateway_options';
|
|
exports.PARAM_ARGS_METADATA = constants_1.ROUTE_ARGS_METADATA;
|
|
exports.CONNECTION_EVENT = 'connection';
|
|
exports.DISCONNECT_EVENT = 'disconnect';
|
|
exports.CLOSE_EVENT = 'close';
|
|
exports.ERROR_EVENT = 'error';
|