UNPKG

msw

Version:

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

14 lines (11 loc) 479 B
import { WebSocketClientConnectionProtocol } from '@mswjs/interceptors/WebSocket'; interface SerializedWebSocketClient { id: string; url: string; } declare abstract class WebSocketClientStore { abstract add(client: WebSocketClientConnectionProtocol): Promise<void>; abstract getAll(): Promise<Array<SerializedWebSocketClient>>; abstract deleteMany(clientIds: Array<string>): Promise<void>; } export { type SerializedWebSocketClient, WebSocketClientStore };