sussudio
Version:
An unofficial VS Code Internal API
18 lines (17 loc) • 876 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IDisposable } from "../../../common/lifecycle.mjs";
import { Client as MessagePortClient } from "../common/ipc.mp.mjs";
/**
* An implementation of a `IPCClient` on top of DOM `MessagePort`.
*/
export declare class Client extends MessagePortClient implements IDisposable {
/**
* @param clientId a way to uniquely identify this client among
* other clients. this is important for routing because every
* client can also be a server
*/
constructor(port: MessagePort, clientId: string);
}