Hacky solution - requires window.socket

This was out original solution - it requires the user to set window.socket to whatever socket they want to debug. Works, but requires client action which is undesired.