UNPKG

@nestjs-mod/files

Version:

Files module with an error filter, controller and rest-sdk for work with module from other nodejs appliaction

25 lines (24 loc) 689 B
import { Observable } from 'rxjs'; import WebSocket from 'ws'; import { FilesApi } from './rest-sdk'; export declare class FilesRestSdkService { private options?; private filesApi?; private filesApiAxios?; private wsHeaders; constructor(options?: { serverUrl?: string; headers?: Record<string, string>; } | undefined); getFilesApi(): FilesApi; updateHeaders(headers: Record<string, string>): void; webSocket<T>({ path, eventName, options, }: { path: string; eventName: string; options?: WebSocket.ClientOptions; }): Observable<{ data: T; event: string; }>; private createApiClients; }