Skip to content

LocalhostPlugin

Namespace NetWiv.Plugin.Localhost · Assembly NetWiv.Plugin.Localhost

public sealed class LocalhostPlugin : IPlugin

Serves bundled frontend assets over HTTP on a selected local port.

public LocalhostPlugin(ushort port, string host = "localhost", Action<LocalhostRequest, LocalhostResponse> onRequest = null);

Serves bundled frontend assets over HTTP on a selected local port.

public int BoundPort { get; }
public string Name { get; }
public void Dispose();
public void Initialize(PluginContext context);
public void Setup(AppHandle app);