Support both direct observatory connection and via Chrome dev tools.