BREAKING CHANGE(socketconnection): Stricter typings, smartserve hooks, connection fixes, and tag API change

This commit is contained in:
2025-12-04 07:59:44 +00:00
parent 5b21955e04
commit 0499db71b8
12 changed files with 1039 additions and 2864 deletions

View File

@@ -13,7 +13,7 @@ export type TMessageType =
/**
* Base message interface for all smartsocket messages
*/
export interface ISocketMessage<T = any> {
export interface ISocketMessage<T = unknown> {
type: TMessageType;
id?: string; // For request/response correlation
payload: T;
@@ -44,16 +44,16 @@ export interface IAuthResponsePayload {
/**
* Function call payload
*/
export interface IFunctionCallPayload {
export interface IFunctionCallPayload<T = unknown> {
funcName: string;
funcData: any;
funcData: T;
}
/**
* Tag update payload
*/
export interface ITagUpdatePayload {
tags: { [key: string]: any };
tags: Record<string, unknown>;
}
/**