import { Logger } from "vscode-ws-jsonrpc"; import { JsonRpcProxy } from "../proxy-factory"; import { ConnectionHandler } from "../handler"; export interface WebSocketOptions { onerror?: (event: Event) => void; } export declare class WebSocketConnectionProvider { /** * Create a proxy object to remote interface of T type * over a web socket connection for the given path. * * An optional target can be provided to handle * notifications and requests from a remote side. */ createProxy(path: string, target?: object, options?: WebSocketOptions): JsonRpcProxy; /** * Install a connection handler for the given path. */ listen(handler: ConnectionHandler, options?: WebSocketOptions): void; protected createLogger(): Logger; /** * Creates a web socket for the given url */ createWebSocket(url: string, options?: WebSocketOptions): WebSocket; } //# sourceMappingURL=connection.d.ts.map