File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 55 */
66
77import { type ConnectionTransport } from 'puppeteer-core' ;
8+
89import { Connection } from '../node_modules/chrome-devtools-frontend/front_end/core/protocol_client/InspectorBackend.js' ;
910
1011/**
1112 * Allows a puppeteer {@link ConnectionTransport} to act like a DevTools {@link Connection}.
1213 */
13- class DevToolsConnectionAdapter extends Connection {
14- #transport: ConnectionTransport | null ;
14+ class _DevToolsConnectionAdapter extends Connection {
15+ #transport: ConnectionTransport | null ;
1516 #onDisconnect: ( ( arg0 : string ) => void ) | null = null ;
1617
1718 constructor ( transport : ConnectionTransport ) {
1819 super ( ) ;
1920 this . #transport = transport ;
2021 this . #transport. onclose = ( ) => this . #onDisconnect?.( '' ) ;
21- this . #transport. onmessage = ( msg ) => this . onMessage ?.( msg ) ;
22+ this . #transport. onmessage = msg => this . onMessage ?.( msg ) ;
2223 }
2324
24- override setOnMessage ( onMessage : ( arg0 : Object | string ) => void ) : void {
25+ override setOnMessage ( onMessage : ( arg0 : object | string ) => void ) : void {
2526 this . onMessage = onMessage ;
2627 }
2728
You can’t perform that action at this time.
0 commit comments