From 5e56e2997fef63f7bc206f3a9dfb216e3aef8cfc Mon Sep 17 00:00:00 2001 From: Dinh Long Nguyen Date: Fri, 5 Jul 2024 19:53:28 +0700 Subject: [PATCH] update naming (#1482) --- frontend/taipy-gui/base/src/app.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/taipy-gui/base/src/app.ts b/frontend/taipy-gui/base/src/app.ts index 4d51a57f34..ba2409f91e 100644 --- a/frontend/taipy-gui/base/src/app.ts +++ b/frontend/taipy-gui/base/src/app.ts @@ -6,7 +6,7 @@ import { Socket, io } from "socket.io-client"; import { DataManager, ModuleData } from "./dataManager"; import { initSocket } from "./socket"; import { TaipyWsAdapter, WsAdapter } from "./wsAdapter"; -import { WsMessageType } from "./packaging/taipy-gui-base"; +import { WsMessageType } from "../../src/context/wsUtils"; export type OnInitHandler = (taipyApp: TaipyApp) => void; export type OnChangeHandler = (taipyApp: TaipyApp, encodedName: string, value: unknown) => void; @@ -96,7 +96,7 @@ export class TaipyApp { } set onReload(handler: OnReloadHandler | undefined) { if (handler !== undefined && handler?.length !== 2) { - throw new Error("_onReload() requires two parameters"); + throw new Error("onReload() requires two parameters"); } this._onReload = handler; } @@ -106,7 +106,7 @@ export class TaipyApp { } set onWsStatusUpdate(handler: OnWsStatusUpdate | undefined) { if (handler !== undefined && handler?.length !== 2) { - throw new Error("_onWsStatusUpdate() requires two parameters"); + throw new Error("onWsStatusUpdate() requires two parameters"); } this._onWsStatusUpdate = handler; }