@rws-framework/client
Version:
This package provides the core client-side framework for Realtime Web Suit (RWS), enabling modular, asynchronous web components, state management, and integration with backend services. It is located in `.dev/client`.
23 lines (17 loc) • 489 B
text/typescript
import { RWSClientInstance } from "../client";
import IRWSConfig from "../types/IRWSConfig";
export const _DEFAULT_HR_PORT = 1030;
export interface IHotReloadCfg {
enabled: boolean,
port: number
}
async function hotReloadSetup(this: RWSClientInstance, config: IRWSConfig = {}): Promise<RWSClientInstance>
{
return this;
}
function getBinds(this: RWSClientInstance) {
return {
hotReloadSetup: hotReloadSetup.bind(this)
};
}
export default getBinds;