From bdbea088e7e4e089c39b473032312cb0c8672859 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Tue, 15 Mar 2022 07:30:09 -0700 Subject: [PATCH] fix: updated docs --- README.md | 2 +- src/devtools.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 99c50be..85058e1 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ jacdac parse log.txt ### `jacdac devtools` -Starts a websocket server that acts as a bridge between a web dashboard and a client implementation. +Starts websocket and native socket server that acts as a bridge between a web dashboard and a client implementation. This allows to test a native client using the latest version of the web developer tools. This command will work in [GitHub codespaces](https://github.com/features/codespaces). diff --git a/src/devtools.ts b/src/devtools.ts index 3e396a6..273ae7c 100644 --- a/src/devtools.ts +++ b/src/devtools.ts @@ -65,11 +65,9 @@ export async function devToolsCommand( log(` raw socket: tcp://localhost:${tcpPort}`) // download proxy sources - //debug(`downloading proxy sources`) const proxyHtml = await fetchProxy() // start http server - //debug(`starting proxy web server`) const clients: WebSocket[] = [] const server = http.createServer(function (req, res) { @@ -86,7 +84,6 @@ export async function devToolsCommand( // passive bus to sniff packets const bridge = createProxyBridge((data, sender) => { - //console.log(sender) clients .filter(c => c[SENDER_FIELD] !== sender) .forEach(c => c.send(Buffer.from(data)))