@coze/uniapp-api
Version:
Official Coze UniApp SDK for seamless AI integration into your applications | 扣子官方 UniApp SDK,助您轻松集成 AI 能力到应用中
13 lines (12 loc) • 335 B
TypeScript
/**
* 注册 WebSocket 工厂到全局
*/
export declare function registerWebSocketFactory(factory: {
getWebSocketImplementation: () => typeof WebSocket;
}): void;
/**
* 获取全局注册的 WebSocket 工厂
*/
export declare function getWebSocketFactory(): {
getWebSocketImplementation: () => typeof WebSocket;
} | null;