Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ogone/src/classes/HMR.ts>default

Advanced Web Composition for Future
Latest
class default
import { default } from "https://deno.land/x/ogone@revb3/src/classes/HMR.ts";

Static Properties

private
optional
_panelInformations: HTMLUListElement
optional
client: WebSocket
clients: Map<string, Client>

only Deno side

components: { [k: string]: HTMLOgoneElement[]; }
readonly
connect: string
diagnostics: ModuleErrorsDiagnostic[]
optional
error: string
FIFOMessages: string[]
heartBeatInterval: ReturnType<setInterval>
heartBeatIntervalTime: number
readonly
isInBrowser: boolean
isInErrorState: boolean

if the session has an error

isWaitingForServerPort: boolean

if the session need to reload

listeners: Map<string, ModuleGraph>
optional
ogone: Ogone
readonly
panelInformations: HTMLUListElement
port: number
optional
server: WebSocketServer

Static Methods

addMessageToHMR(message: string, type?: string)
checkHeartBeat(): boolean
clientSettings(shouldReload?: boolean): void
getModule(
pathToModule: string,
uuidReq: string,
uuid: string,
)
postMessage(obj: Object)
rerenderComponents(uuid: string, output?: string)
sendError(error: string, diagnostics: ModuleErrorsDiagnostic[])
sendFIFOMessages(id: string)
setGraph(pathToModule: string, graph: string[])
showHMRMessage(message: string, messageType?: string)
subscribe(pathToModule: string, listener: Function)
updateWithOutput(output: string)
useOgone(ogone: Ogone)