UNPKG

msw

Version:

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

13 lines (10 loc) 514 B
import { WebSocketConnectionData, WebSocketClientConnection } from '@mswjs/interceptors/WebSocket'; declare function attachWebSocketLogger(connection: WebSocketConnectionData): void; /** * Prints the WebSocket connection. * This is meant to be logged by every WebSocket handler * that intercepted this connection. This helps you see * what handlers observe this connection. */ declare function logConnectionOpen(client: WebSocketClientConnection): void; export { attachWebSocketLogger, logConnectionOpen };