UNPKG

@sucoza/websocket-signalr-devtools-plugin

Version:

DevTools plugin for WebSocket and SignalR connection monitoring and debugging

26 lines 896 B
import type { WebSocketConnection, WebSocketMessage, WebSocketError } from '../types/websocket'; import { EventEmitter } from './event-emitter'; export declare class WebSocketInterceptor extends EventEmitter<{ connectionCreated: WebSocketConnection; connectionUpdated: { id: string; updates: Partial<WebSocketConnection>; }; connectionClosed: string; messageAdded: WebSocketMessage; errorOccurred: WebSocketError; }> { private originalWebSocket; private connections; private connectionData; private isEnabled; constructor(); enable(): void; disable(): void; getConnection(id: string): WebSocketConnection | undefined; getAllConnections(): WebSocketConnection[]; closeConnection(id: string): void; private interceptWebSocket; private calculateMessageSize; } //# sourceMappingURL=websocket-interceptor.d.ts.map