Skip to content

Search the guides, deployment pages, and API reference.

BrowserHmrChannel

import type { BrowserHmrChannel } from "@pitlane/content/hot";

The part of remix/node-hmr's BrowserHmrChannel this module uses.

Declared structurally rather than imported, because importing the module that declares it would pull a Node-only dependency into every bundle this package reaches. hotContent holds the only import of it, loaded on demand behind its guard.

Properties

url

readonly url: string;

Methods

close()

close(): void;

Returns

void


onFileEvents()

onFileEvents(handler): () => void;

Parameters

handler

(events: readonly FileEvent[]) => Promise<readonly BrowserEvent[]>

Returns

() => void


updateWatchedFiles()

updateWatchedFiles(delta): void;

Parameters

delta
add

readonly string[]

remove

readonly string[]

Returns

void