Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/base/parts/ipc/browser/ipc.mp.ts
4780 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { IDisposable } from '../../../common/lifecycle.js';
7
import { Client as MessagePortClient } from '../common/ipc.mp.js';
8
9
/**
10
* An implementation of a `IPCClient` on top of DOM `MessagePort`.
11
*/
12
export class Client extends MessagePortClient implements IDisposable {
13
14
/**
15
* @param clientId a way to uniquely identify this client among
16
* other clients. this is important for routing because every
17
* client can also be a server
18
*/
19
constructor(port: MessagePort, clientId: string) {
20
super(port, clientId);
21
}
22
}
23
24