@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
5 lines (4 loc) • 320 B
TypeScript
import type { WebSocket } from 'ws';
import { WebSocketMessage } from '../messages.js';
export declare const waitForAnyMessage: (client: WebSocket, timeout: number) => Promise<Record<string, any>>;
export declare const waitForMessageType: (client: WebSocket, type: string, timeout: number) => Promise<WebSocketMessage>;