
- 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.
84 lines
2.5 KiB
TypeScript
84 lines
2.5 KiB
TypeScript
/**
|
|
* Writes a 32 bit float to a buffer using little endian byte order.
|
|
* @name writeFloatLE
|
|
* @function
|
|
* @param {number} val Value to write
|
|
* @param {Uint8Array} buf Target buffer
|
|
* @param {number} pos Target buffer offset
|
|
* @returns {undefined}
|
|
*/
|
|
export function writeFloatLE(val: number, buf: Uint8Array, pos: number): void;
|
|
|
|
/**
|
|
* Writes a 32 bit float to a buffer using big endian byte order.
|
|
* @name writeFloatBE
|
|
* @function
|
|
* @param {number} val Value to write
|
|
* @param {Uint8Array} buf Target buffer
|
|
* @param {number} pos Target buffer offset
|
|
* @returns {undefined}
|
|
*/
|
|
export function writeFloatBE(val: number, buf: Uint8Array, pos: number): void;
|
|
|
|
/**
|
|
* Reads a 32 bit float from a buffer using little endian byte order.
|
|
* @name readFloatLE
|
|
* @function
|
|
* @param {Uint8Array} buf Source buffer
|
|
* @param {number} pos Source buffer offset
|
|
* @returns {number} Value read
|
|
*/
|
|
export function readFloatLE(buf: Uint8Array, pos: number): number;
|
|
|
|
/**
|
|
* Reads a 32 bit float from a buffer using big endian byte order.
|
|
* @name readFloatBE
|
|
* @function
|
|
* @param {Uint8Array} buf Source buffer
|
|
* @param {number} pos Source buffer offset
|
|
* @returns {number} Value read
|
|
*/
|
|
export function readFloatBE(buf: Uint8Array, pos: number): number;
|
|
|
|
/**
|
|
* Writes a 64 bit double to a buffer using little endian byte order.
|
|
* @name writeDoubleLE
|
|
* @function
|
|
* @param {number} val Value to write
|
|
* @param {Uint8Array} buf Target buffer
|
|
* @param {number} pos Target buffer offset
|
|
* @returns {undefined}
|
|
*/
|
|
export function writeDoubleLE(val: number, buf: Uint8Array, pos: number): void;
|
|
|
|
/**
|
|
* Writes a 64 bit double to a buffer using big endian byte order.
|
|
* @name writeDoubleBE
|
|
* @function
|
|
* @param {number} val Value to write
|
|
* @param {Uint8Array} buf Target buffer
|
|
* @param {number} pos Target buffer offset
|
|
* @returns {undefined}
|
|
*/
|
|
export function writeDoubleBE(val: number, buf: Uint8Array, pos: number): void;
|
|
|
|
/**
|
|
* Reads a 64 bit double from a buffer using little endian byte order.
|
|
* @name readDoubleLE
|
|
* @function
|
|
* @param {Uint8Array} buf Source buffer
|
|
* @param {number} pos Source buffer offset
|
|
* @returns {number} Value read
|
|
*/
|
|
export function readDoubleLE(buf: Uint8Array, pos: number): number;
|
|
|
|
/**
|
|
* Reads a 64 bit double from a buffer using big endian byte order.
|
|
* @name readDoubleBE
|
|
* @function
|
|
* @param {Uint8Array} buf Source buffer
|
|
* @param {number} pos Source buffer offset
|
|
* @returns {number} Value read
|
|
*/
|
|
export function readDoubleBE(buf: Uint8Array, pos: number): number;
|