|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
569 bytes
|
| Line | |
|---|
| 1 | import { RpcProcedure, RpcProcedurePayload, RpcProcedureResult } from './RpcProcedure';
|
|---|
| 2 | import { RpcMessagePort } from './RpcMessagePort';
|
|---|
| 3 | interface RpcClient {
|
|---|
| 4 | readonly isConnected: () => boolean;
|
|---|
| 5 | readonly connect: () => Promise<void>;
|
|---|
| 6 | readonly disconnect: () => Promise<void>;
|
|---|
| 7 | readonly dispatchCall: <TProcedure extends RpcProcedure>(procedure: TProcedure, payload: RpcProcedurePayload<TProcedure>) => Promise<RpcProcedureResult<TProcedure>>;
|
|---|
| 8 | }
|
|---|
| 9 | declare function createRpcClient(port: RpcMessagePort): RpcClient;
|
|---|
| 10 | export { RpcClient, createRpcClient };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.