Google Groups

Re: [Chrome DevTools] [ANN] Multiple simultaneous clients for a single remote web inspector server

Paul Irish May 9, 2012 12:27 AM
Posted in group: Chrome DevTools
Very cool. Thanks for sharing this nice work. :)

On Wed, May 9, 2012 at 12:10 AM, Thomas Aylott <> wrote:
Multiplexing WebSocket Proxy allows you to use multiple remote web inspector clients with the same browser tab at the same time.

# install the proxy server
npm install ws-multi-proxy

# launch the basic proxy server
node ./node_modules/ws-multi-proxy/index.js 9023 &

# launch a browser with remote webkit inspector server enabled
open -a "Google Chrome Canary" --args --remote-debugging-port=9222 --user-data-dir="$TMPDIR/.chrome-user-data" about:blank

# find available debugger sockets
curl -s "http://localhost:9222/json"|grep webSocketDebuggerUrl|cut -d'"' -f4

# inspector client 1

# inspector client 2

# inspector client 3


The Elements panel only really seems to work completely with one client at a time. Everything else seems to work just fine.

I plan to create multiple tools that use the web inspector socket API.
This proxy thing will make it possible to use multiple tools at once.