UNPKG

@malagu/rpc

Version:
21 lines 1.19 kB
import { Channel, JsonRpcProxy, ConnectionHandler, ConnnectionFactory } from '../../common'; import { PathResolver } from '@malagu/web'; import { Logger } from 'vscode-jsonrpc'; import { ProxyCreator, ConnectionOptions } from './proxy-protocol'; export declare class HttpProxyCreator implements ProxyCreator { protected channelIdSeq: number; protected readonly channels: Map<number, Channel>; protected connnectionFactory: ConnnectionFactory<Channel>; protected pathResolver: PathResolver; protected endpoint: string; protected readonly rpcPath: string; create<T extends object>(path: string, target?: object | undefined): JsonRpcProxy<T>; support(path: string): number; listen(handler: ConnectionHandler, options?: ConnectionOptions): void; openChannel(path: string, handler: (channel: Channel) => void, options?: ConnectionOptions): void; protected doOpenChannel(path: string, handler: (channel: Channel) => void, options?: ConnectionOptions): void; protected createChannel(id: number, path: string): Channel; protected createLogger(): Logger; protected getEndpoint(): string; } //# sourceMappingURL=http-proxy-creator.d.ts.map