Skip to content

[dsrouter] Implement a WebSocket server #3422

Closed

Description

@lambdageek

In .NET 8, the .NET runtime may ship a variant of the WebAssembly runtime that supports diagnostic tracing (this is an optional opt-in because it requires threading support, which is opt-in). Runtime tracking issue: dotnet/runtime#69268

In order to support tracing in WebAssembly apps, the dotnet-dsrouter tool needs a new mode where it can create a WebSocket server that will allow a .NET app running in the browser to connect to it.

$ dotnet-dsrouter server-websocket -ipcs ./domain_socket -ws ws://localhost:12345/diagnostics

After that, the usual diagnostics commands such as dotnet-trace will be able to collect diagnostics from running WebAssembly apps.

$ dotnet-trace collect --diagnostic-port ./domain_socket,connect ...

Activity

  1. added
    enhancement
    on Sep 28, 2022
  2. added this to the 7.0.0 milestone on Sep 28, 2022
  3. modified the milestones: 7.0.0, 8.0.0 on Oct 17, 2022
  4. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions