UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

5 lines (4 loc) 321 B
import { WebSocketMessage } from '@directus/types'; import type { WebSocket } from 'ws'; export declare const waitForAnyMessage: (client: WebSocket, timeout: number) => Promise<Record<string, any>>; export declare const waitForMessageType: (client: WebSocket, type: string, timeout: number) => Promise<WebSocketMessage>;