You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
524 B
11 lines
524 B
2 years ago
|
import { RpcMessagePort } from './RpcMessagePort';
|
||
|
interface RpcMessageChannel {
|
||
|
readonly servicePort: RpcMessagePort;
|
||
|
readonly clientPort: RpcMessagePort;
|
||
|
readonly isOpen: () => boolean;
|
||
|
readonly open: () => Promise<void>;
|
||
|
readonly close: () => Promise<void>;
|
||
|
}
|
||
|
declare function createRpcMessageChannel(servicePort: RpcMessagePort, clientPort: RpcMessagePort, linkPorts?: () => Promise<void>, unlinkPorts?: () => Promise<void>): RpcMessageChannel;
|
||
|
export { RpcMessageChannel, createRpcMessageChannel };
|