
- 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.
80 lines
1.7 KiB
TypeScript
80 lines
1.7 KiB
TypeScript
import * as stream from 'stream';
|
|
|
|
declare const isStream: {
|
|
/**
|
|
@returns Whether `stream` is a [`Stream`](https://nodejs.org/api/stream.html#stream_stream).
|
|
|
|
@example
|
|
```
|
|
import * as fs from 'fs';
|
|
import isStream = require('is-stream');
|
|
|
|
isStream(fs.createReadStream('unicorn.png'));
|
|
//=> true
|
|
|
|
isStream({});
|
|
//=> false
|
|
```
|
|
*/
|
|
(stream: unknown): stream is stream.Stream;
|
|
|
|
/**
|
|
@returns Whether `stream` is a [`stream.Writable`](https://nodejs.org/api/stream.html#stream_class_stream_writable).
|
|
|
|
@example
|
|
```
|
|
import * as fs from 'fs';
|
|
import isStream = require('is-stream');
|
|
|
|
isStream.writable(fs.createWriteStrem('unicorn.txt'));
|
|
//=> true
|
|
```
|
|
*/
|
|
writable(stream: unknown): stream is stream.Writable;
|
|
|
|
/**
|
|
@returns Whether `stream` is a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable).
|
|
|
|
@example
|
|
```
|
|
import * as fs from 'fs';
|
|
import isStream = require('is-stream');
|
|
|
|
isStream.readable(fs.createReadStream('unicorn.png'));
|
|
//=> true
|
|
```
|
|
*/
|
|
readable(stream: unknown): stream is stream.Readable;
|
|
|
|
/**
|
|
@returns Whether `stream` is a [`stream.Duplex`](https://nodejs.org/api/stream.html#stream_class_stream_duplex).
|
|
|
|
@example
|
|
```
|
|
import {Duplex} from 'stream';
|
|
import isStream = require('is-stream');
|
|
|
|
isStream.duplex(new Duplex());
|
|
//=> true
|
|
```
|
|
*/
|
|
duplex(stream: unknown): stream is stream.Duplex;
|
|
|
|
/**
|
|
@returns Whether `stream` is a [`stream.Transform`](https://nodejs.org/api/stream.html#stream_class_stream_transform).
|
|
|
|
@example
|
|
```
|
|
import * as fs from 'fs';
|
|
import Stringify = require('streaming-json-stringify');
|
|
import isStream = require('is-stream');
|
|
|
|
isStream.transform(Stringify());
|
|
//=> true
|
|
```
|
|
*/
|
|
transform(input: unknown): input is stream.Transform;
|
|
};
|
|
|
|
export = isStream;
|