1 | import { interfaces } from 'inversify';
|
2 | import { Emitter, Event } from '../event';
|
3 | import { ConnectionHandler } from './handler';
|
4 | import { JsonRpcProxy, JsonRpcProxyFactory } from './proxy-factory';
|
5 | import { Channel, ChannelMultiplexer } from '../message-rpc/channel';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare abstract class AbstractConnectionProvider<AbstractOptions extends object> {
|
12 | |
13 |
|
14 |
|
15 |
|
16 | static createProxy<T extends object>(container: interfaces.Container, path: string, factory: JsonRpcProxyFactory<T>): JsonRpcProxy<T>;
|
17 | protected readonly onIncomingMessageActivityEmitter: Emitter<void>;
|
18 | get onIncomingMessageActivity(): Event<void>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | createProxy<T extends object>(path: string, factory: JsonRpcProxyFactory<T>): JsonRpcProxy<T>;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | createProxy<T extends object>(path: string, target?: object): JsonRpcProxy<T>;
|
32 | protected channelMultiplexer?: ChannelMultiplexer;
|
33 | protected reconnectChannelOpeners: Array<() => Promise<void>>;
|
34 | protected initializeMultiplexer(): void;
|
35 | |
36 |
|
37 |
|
38 | listen(handler: ConnectionHandler, options?: AbstractOptions): void;
|
39 | openChannel(path: string, handler: (channel: Channel) => void, options?: AbstractOptions): Promise<void>;
|
40 | |
41 |
|
42 |
|
43 | protected abstract createMainChannel(): Channel;
|
44 | }
|
45 |
|
\ | No newline at end of file |