UNPKG

sussudio

Version:

An unofficial VS Code Internal API

19 lines (18 loc) 801 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Client as MessagePortClient } from "../common/ipc.mp.mjs"; /** * An implementation of a `IPCClient` on top of DOM `MessagePort`. */ export class Client extends MessagePortClient { /** * @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, clientId) { super(port, clientId); } }