microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
sourcemap-handle-null-sections

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/cdp-proxy/CDPMessageHandlers/baseCDPMessageHandler.ts

32lines · modeblame

259c018fYuri Skorokhodov5 years ago1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import { Connection } from "vscode-cdp-proxy";
09f6024fHeniker4 years ago5import { ICDPMessageHandler, ProcessedCDPMessage } from "./ICDPMessageHandler";
259c018fYuri Skorokhodov5 years ago6
7export abstract class BaseCDPMessageHandler implements ICDPMessageHandler {
176f99c8ConnorQi013 months ago8protected debuggerTarget: Connection | null = null;
9protected applicationTarget: Connection | null = null;
259c018fYuri Skorokhodov5 years ago10
11public processDebuggerCDPMessage(event: any): ProcessedCDPMessage {
12return {
13event,
14sendBack: false,
15};
16}
17
18public processApplicationCDPMessage(event: any): ProcessedCDPMessage {
19return {
20event,
21sendBack: false,
22};
23}
24
25public setDebuggerTarget(debuggerTarget: Connection | null): void {
26this.debuggerTarget = debuggerTarget;
27}
28
29public setApplicationTarget(applicationTarget: Connection | null): void {
30this.applicationTarget = applicationTarget;
31}
34472878RedMickey5 years ago32}