Skip to main content
Version: 3x

Interface: HmrDelegate

Delegate with implementation for HMR-specific functions.

Table of contents

Methods

Methods

getUriPath

getUriPath(): 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, 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