@@ -25,7 +25,7 @@ const CURRENT_API_VERSION =
2525 protos . TraceProcessorApiVersion . TRACE_PROCESSOR_CURRENT_API_VERSION ;
2626
2727function getPromptMessage ( tpStatus : protos . StatusResult ) : string {
28- return `Trace Processor detected on ${ HttpRpcEngine . hostAndPort } with:
28+ return `Trace Processor detected on ${ HttpRpcEngine . getHostAndPort ( ) } with:
2929${ tpStatus . loadedTraceName }
3030
3131YES, use loaded trace:
@@ -47,7 +47,7 @@ Using the native accelerator has some minor caveats:
4747}
4848
4949function getIncompatibleRpcMessage ( tpStatus : protos . StatusResult ) : string {
50- return `The Trace Processor instance on ${ HttpRpcEngine . hostAndPort } is too old.
50+ return `The Trace Processor instance on ${ HttpRpcEngine . getHostAndPort ( ) } is too old.
5151
5252This UI requires TraceProcessor features that are not present in the
5353Trace Processor native accelerator you are currently running.
@@ -69,7 +69,7 @@ Trace processor RPC API: ${tpStatus.apiVersion}
6969}
7070
7171function getVersionMismatchMessage ( tpStatus : protos . StatusResult ) : string {
72- return `The Trace Processor instance on ${ HttpRpcEngine . hostAndPort } is a different build from the UI.
72+ return `The Trace Processor instance on ${ HttpRpcEngine . getHostAndPort ( ) } is a different build from the UI.
7373
7474This may cause problems. Where possible it is better to use the matched version of the UI.
7575You can do this by clicking the button below.
@@ -149,8 +149,8 @@ Trace processor RPC API: ${tpStatus.apiVersion}
149149// trying to load a new trace. We do this ahead of time just to have a
150150// consistent UX (i.e. so that the user can tell if the RPC is working without
151151// having to open a trace).
152- export async function checkHttpRpcConnection ( ) : Promise < void > {
153- const state = await HttpRpcEngine . checkConnection ( ) ;
152+ export async function checkHttpRpcConnection ( port : string ) : Promise < void > {
153+ const state = await HttpRpcEngine . checkConnection ( port ) ;
154154 AppImpl . instance . httpRpc . httpRpcAvailable = state . connected ;
155155 if ( ! state . connected ) {
156156 // No RPC = exit immediately to the WASM UI.
0 commit comments