PeakSWC.RemoteWebViewService.Lib 10.0.15.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package PeakSWC.RemoteWebViewService.Lib --version 10.0.15.2
                    
NuGet\Install-Package PeakSWC.RemoteWebViewService.Lib -Version 10.0.15.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PeakSWC.RemoteWebViewService.Lib" Version="10.0.15.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PeakSWC.RemoteWebViewService.Lib" Version="10.0.15.2" />
                    
Directory.Packages.props
<PackageReference Include="PeakSWC.RemoteWebViewService.Lib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PeakSWC.RemoteWebViewService.Lib --version 10.0.15.2
                    
#r "nuget: PeakSWC.RemoteWebViewService.Lib, 10.0.15.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PeakSWC.RemoteWebViewService.Lib@10.0.15.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PeakSWC.RemoteWebViewService.Lib&version=10.0.15.2
                    
Install as a Cake Addin
#tool nuget:?package=PeakSWC.RemoteWebViewService.Lib&version=10.0.15.2
                    
Install as a Cake Tool

PeakSWC.RemoteWebViewService.Lib

The RemoteWebViewService as a library. The same code that runs as RemoteWebViewService.exe (and in the Railway container) can be hosted inside your own process, for example a WPF or WinForms app that shows its RemoteBlazorWebView UI in a local browser or a WebView2 iframe without a separate server process.

Embedded (in-process)

using PeakSWC.RemoteWebView;

// Loopback, plain HTTP, free ports. Returns once Kestrel is listening; does not block.
await using var server = await RemoteWebViewServer.StartAsync(new RemoteWebViewServerOptions
{
    MaxClients = 1,
    FrameAncestors = ["'self'", "https://host.example"],   // optional
    ConfigureLogging = lb => lb.AddDebug(),                 // optional; default is silent
});

blazorWebView.ServerUri = server.BaseUri;      // browsers: http://127.0.0.1:<port>/
blazorWebView.GrpcBaseUri = server.GrpcUri;    // native gRPC client: http://127.0.0.1:<grpcPort>/
// The page for a client is new Uri(server.BaseUri, $"app/{blazorWebView.Id}")

await server.StopAsync();                      // or dispose
  • Port = 0 (the default) binds a free port; read the real one from server.Port / server.BaseUri.
  • Plain HTTP is allowed only on a loopback address, so no development certificate is needed. Without TLS there is no ALPN, so browsers (HTTP/1.1, gRPC-Web) and the native gRPC client (HTTP/2) get separate ports. Set UseHttps = true (dev certificate) or Certificate to serve both on one HTTPS port.
  • The embedded host does not change the current directory or thread pool, does not read the host app's appsettings.json or environment variables, and does not hook Ctrl+C or process exit.
  • MaxClients limits concurrent RemoteWebView clients (a new CreateWebView gets 503 / Unavailable); browser requests for connected clients are never blocked. With MaxClients = 1 the client-list and file-watcher services are not mapped. The agent hub (doc/Agents.md) is never mapped when embedded.
  • FrameAncestors adds Content-Security-Policy: frame-ancestors ... to HTML responses and rejects cross-origin script calls whose Origin is not listed. Same-origin calls are always allowed.

Experimental: agent registry

The agent registry (AgentHub / AgentAdmin, see doc/Agents.md in the repository) is experimental and may change or be removed in any release. Its public types are marked [Experimental("RWV001")], so using them produces compiler diagnostic RWV001; add <NoWarn>$(NoWarn);RWV001</NoWarn> to opt in. The rest of this package is not affected.

Standalone

RemoteWebViewServer.Run(args);   // what RemoteWebViewService.exe does
RemoteWebViewServer.Run(5001, maxNumClients: 1, frameAncestors: ["'self'"]);   // blocking, HTTPS on loopback

Two-way voice for WPF sessions

Set BlazorWebView.EnableVoice = true before setting HostPage. Use HTTPS for the browser and host connections, and deploy a relay built with voice support. Open the controller through /app/{id} to get its one-time voice grant. In deployments without sign-in, treat the controller link as a credential. Mirror pages have no voice controls or grant.

The controller can request a call. The person at the PC accepts or declines in a separate local WebView2 window. Both sides can mute or hang up, and closing either endpoint ends the call. Voice uses the default input and output devices. The relay forwards call setup messages and WebRTC carries audio directly or through TURN.

Configure Voice__StunUrl for STUN and Voice__TurnUrl with Voice__TurnSecret for a TURN server that supports shared-secret credentials. For example, use turns:turn.example.com:443?transport=tcp for a TURN TLS listener on port 443. Keep the TURN secret on the relay. Configure the HTTPS proxy to forward WebSocket upgrades and preserve the public Host header on /voice/{id}/signal.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0 98 11/11/2026
10.0.15.3 283 11/23/2026
10.0.15.2 3,237 11/20/2026
10.0.15.1 699 11/11/2026
10.0.14 111 11/8/2026
0.0.2 1,841 7/1/2025
0.0.1 358 6/26/2025

Based on maui 10.0.15.2

Changes since 10.0.14
Merge pull request #98 from budcribar/claude/project-thread-xv5i5s
Refuse GetIds on a relay that requires sign-in
Merge pull request #97 from budcribar/claude/project-thread-89es12
Mirror: wait for the WebView before showing the mirror on connect
Tests: say which session is short when the relay's file totals don't match
Merge pull request #96 from budcribar/claude/project-thread-89es12
Bump to 10.0.15.2 with release notes
Merge pull request #90 from budcribar/claude/project-thread-i544zb
Merge pull request #91 from budcribar/claude/project-thread-89es12
Merge pull request #94 from budcribar/claude/project-thread-wg41g7
Set-RailwayAgentKeys: create its link folder under -WhatIf too
Merge pull request #95 from budcribar/claude/project-thread-mj8jra
Set-RailwayAgentKeys: define a function when dot-sourced, link the relay project itself
Relay: send non-owner browsers in shared sessions to the mirror, log page requests
Relay: an EndSession is an expected disconnect, and keeps the requester label
Add scripts/Set-RailwayAgentKeys.ps1 to set the relay's enrollment keys on Railway
AgentHub: add ReleaseAvailableCommand broadcast and AgentAdmin.PublishRelease RPC
Merge pull request #93 from budcribar/claude/project-thread-3r4wyp-end-reason
Check connectionState in the lost-connection end-to-end test
Merge pull request #92 from budcribar/claude/project-thread-3r4wyp
Merge branch 'claude/project-thread-3r4wyp' into claude/project-thread-3r4wyp-end-reason
Tests: pass a shutdown reason in the null/whitespace id test
Relay: ReasonedCancellationTokenSource records why a session's token was cancelled
Relay: record why a session ends next to its token, so follow-on cancellations log at Debug
Relay: log every session shutdown with its reason
Publish the stream's connection state in window.RemoteControl
Relay: refuse agents outside Development when AGENT_ENROLLMENT_KEYS is unset
Merge pull request #88 from budcribar/claude/client-key
Agent protocol: add STAGE_CONSENT_TIMED_OUT launch stage (#89)
Relay: a browser that leaves straight after joining is taken out of the session
Relay: a request must carry the key of the connection it names
Merge pull request #87 from budcribar/claude/voice-controls-warning
Voice without controls is reported in the console
Relay: /status is open without sign-in and reports only a finished registration
Relay: the owner's own window is never locked out or taken for a refresh
Relay: EndSession RPC and a requester label for signed-in callers
Include RemoteTicket in Railway watchPatterns
Fix relay ticket signature interoperability with RemoteWebViewAdmin and fallback signing key
Fix unattended consent check for platform admins with null group scope
Support reading ticket from query parameter and set relay auth cookie
Add signed RemoteTicket relay authorization and tenant policy hooks
Add a Fast filter for the desktop and tutorial tests
Tests: wait for the relay's file totals before checking them
Merge branch 'claude/session-bar-opt-in': session bar is opt-in, templates, restart keeps the owner role (10.0.15.1)
A page comes back from a restart with the query it was opened with
Session bar is opt-in: no placeholder, no bar; a template makes it the app's own
Merge branch 'claude/session-bar-slot-declared': session bar waits for a declared placeholder (10.0.15.1)
Generator README and ShareControl doc comment mention the host-page tag for the session bar
Version 10.0.15.1 (was 10.0.16): the first three parts follow the .NET release
Test: visibility waits take their own options type
Session bar waits for a declared placeholder instead of floating at startup (10.0.16)
Release workflow publishes to NuGet when dry_run is off (trusted publishing, nuget-org approval)
10-client test waits 2 minutes before attaching browsers again (idle sessions must survive)

Full list: https://github.com/budcribar/RemoteBlazorWebView/compare/10.0.14...78554ab12c9890900cfa70e917c4ca8231fc7a17