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

Name Type Description
platform string Platform of the connected client.
clientId string Id of the connected client.

Returns

void

Defined in

plugins/wss/types.ts:16