UNPKG

msw

Version:

Seamless REST/GraphQL API mocking library for browser and Node.js.

15 lines (12 loc) 566 B
import { WebSocketClientConnectionProtocol } from '@mswjs/interceptors/WebSocket'; import { WebSocketClientStore, SerializedWebSocketClient } from './WebSocketClientStore.js'; declare class WebSocketIndexedDBClientStore implements WebSocketClientStore { private db; constructor(); add(client: WebSocketClientConnectionProtocol): Promise<void>; getAll(): Promise<Array<SerializedWebSocketClient>>; deleteMany(clientIds: Array<string>): Promise<void>; private createDatabase; private getStore; } export { WebSocketIndexedDBClientStore };