capacitor-cors-bypass-enhanced
Version:
Enhanced Capacitor plugin for CORS bypass with HTTP/2, HTTP/3, gRPC, GraphQL, file operations, and advanced networking features. Modular TypeScript definitions for better maintainability.
33 lines • 984 B
TypeScript
import type { WebSocketConnectionOptions, WebSocketConnection } from '../definitions';
/**
* WebSocket Manager
* Handles WebSocket connections with CORS bypass
*/
export declare class WebSocketManager {
private wsConnections;
private connectionCounter;
private notifyListeners;
constructor(notifyListeners: (eventName: string, data: any) => void);
/**
* Create a WebSocket connection
*/
createWebSocketConnection(options: WebSocketConnectionOptions): Promise<WebSocketConnection>;
/**
* Close a WebSocket connection
*/
closeWebSocketConnection(options: {
connectionId: string;
}): Promise<void>;
/**
* Send data through WebSocket
*/
sendWebSocketMessage(options: {
connectionId: string;
message: string;
}): Promise<void>;
/**
* Get all active WebSocket connections
*/
getWebSocketConnections(): Map<string, WebSocket>;
}
//# sourceMappingURL=websocket.d.ts.map