f
proxyTo(upstream: string): Promise<Proxy>
A WebSocket the DevTools frontend is allowed to open, piped to the one Chrome will accept.
I
Proxy
A running proxy: the port a frontend may connect to, and how to take it down.
-
address: string
Where the DevTools frontend should point its
ws=—localhost:<port>. -
close(): Promise<void>
Drops every frontend still attached and stops listening.
Usage
import * as mod from "lib/repl/proxy.ts";