Path: blob/main/src/vs/base/parts/ipc/browser/ipc.mp.ts
4780 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { IDisposable } from '../../../common/lifecycle.js';6import { Client as MessagePortClient } from '../common/ipc.mp.js';78/**9* An implementation of a `IPCClient` on top of DOM `MessagePort`.10*/11export class Client extends MessagePortClient implements IDisposable {1213/**14* @param clientId a way to uniquely identify this client among15* other clients. this is important for routing because every16* client can also be a server17*/18constructor(port: MessagePort, clientId: string) {19super(port, clientId);20}21}222324