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
fileWatcherIFileWatcherlifetimeIHostApplicationLifetimeloggerILogger<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);
}