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
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
Name | Type | Description |
---|---|---|
platform | string | Platform of the connected client. |
clientId | string | Id of the connected client. |
Returns
void