Code Monkey home page Code Monkey logo

Comments (5)

andysterland avatar andysterland commented on May 18, 2024

The web socket end point for each page can have multiple connections. Though the clients would likely hit issues and it would be unlikely to work off the bat. Having multiple remote clients wasn't something we had in mind to support. Though you can still use the F12 dev tools in Edge (except debugging) as they connect via a different mechanism.

Is there a scenario you had in mind? I can sure imagine their being scenarios for having multiple tools working against the same page, the trick is not having them trip over each other.

from edge-diagnostics-adapter.

caspervonb avatar caspervonb commented on May 18, 2024

The web socket end point for each page can have multiple connections. Though the clients would likely hit issues and it would be unlikely to work off the bat. Having multiple remote clients wasn't something we had in mind to support. Though you can still use the F12 dev tools in Edge (except debugging) as they connect via a different mechanism.

There are basically only two criterias I can think of to consider it supported, Chrome still has an open issue regarding this as it only supports a single connection. Other adapters seem to favor supporting multiple connections however.

  • Enable/disable state per connection (e.g enable should send all relevant buffered notifications to that client)
  • Per connection command mapping (e.g command identifiers are local to a client)

With these two taken care of, most clients will continue on as normal as they are just sending commands as normal and receiving events as normal.

Is there a scenario you had in mind? I can sure imagine their being scenarios for having multiple tools working against the same page, the trick is not having them trip over each other.

Basically anything that is non-trivial, for example running coda-hotpatch concurrently with a graphical debugger open like vscode-chrome-debug, or just vanilla chrome developer tools.

from edge-diagnostics-adapter.

andysterland avatar andysterland commented on May 18, 2024

Thanks for the follow up :). You're dead right there is a lot of interesting scenarios for multiple clients indeed it's something we've been playing around with.

What I should have said, but didn't, is we don't have plans to support it right now and by support I mean test it and fix issues :). Our first stop on the roadmap is to get the adapter to the state in which can support debugging clients like VS Code then fill out some of the APIs that are missing/buggy. And my initial reply was in that somewhat single minded short term hat on :(. In the future for sure we absolutely want to have many clients connected to the same page.

If you're interested it be great to get coda-hotpatch working against the adapter it looks like it uses:

  1. 'CSS.styleSheetAdded'
  2. 'Debugger.setScriptSource'
  3. 'CSS.styleSheetAdded'
  4. 'Debugger.globalObjectCleared'
  5. 'Debugger.scriptParsed'
    The adapter doesn't yet implement them all but they are all on the short term to do list as the platform in Edge has the capabilities (though setScriptSource only works when not at a breakpoint).

from edge-diagnostics-adapter.

caspervonb avatar caspervonb commented on May 18, 2024

What I should have said, but didn't, is we don't have plans to support it right now and by support I mean test it and fix issues ...

Noted, but what are the current semantics?

  • Are command identifiers local per client or do they need to be unique across all clients?
  • Is enabled/disabled state (event delivery) tracked per client, or per target?

If you're interested it be great to get coda-hotpatch working against the adapter it looks like it uses ...

Working towards that 😉

from edge-diagnostics-adapter.

molant avatar molant commented on May 18, 2024

@caspervonb the Chrome issue you reference is now fixed.

Closing this issue as it is quite old and there are no plan to add that feature to this project.

from edge-diagnostics-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.