Skip to main content
Version: 3x

Interface: HmrDelegate

Delegate with implementation for HMR-specific functions.

Table of contents

Properties

Properties

getUriPath

getUriPath: () => string

Type declaration

▸ (): string

Get URI under which HMR server will be running, e.g: /hmr

Returns

string

Defined in

plugins/wss/types.ts:6


onClientConnected

onClientConnected: (platform: string, clientId: string) => void

Type declaration

▸ (platform, clientId): void

Callback for when the new HMR client is connected.

Useful for running initial synchronization or any other side effect.

Parameters
NameTypeDescription
platformstringPlatform of the connected client.
clientIdstringId of the connected client.
Returns

void

Defined in

plugins/wss/types.ts:16