This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

LiveReloadServer Pennington.Infrastructure

Manages WebSocket connections for live reload during development. When watched files change, debounces rapid notifications and sends a single reload message to all connected browsers.

Constructors

.ctor

#
public LiveReloadServer(IFileWatcher fileWatcher, IHostApplicationLifetime lifetime, ILogger<LiveReloadServer>? logger = null);

Initializes the server and subscribes to watched-file change notifications.

Parameters

fileWatcher IFileWatcher
lifetime IHostApplicationLifetime
logger ILogger<LiveReloadServer>? (optional)

Pennington.Infrastructure.LiveReloadServer

namespace Pennington.Infrastructure;

/// Manages WebSocket connections for live reload during development. When watched files change, debounces rapid notifications and sends a single reload message to all connected browsers.
public class LiveReloadServer
{
    /// Initializes the server and subscribes to watched-file change notifications.
    
public LiveReloadServer(IFileWatcher fileWatcher, IHostApplicationLifetime lifetime, ILogger<LiveReloadServer>? logger = null);
}