From 434aa8343fdcbb4d5002f934979913c099489bee Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 16 Nov 2025 19:08:29 +0800 Subject: sdk, del --- .../@firebase/ai/dist/esm/src/websocket.d.ts | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 frontend-old/node_modules/@firebase/ai/dist/esm/src/websocket.d.ts (limited to 'frontend-old/node_modules/@firebase/ai/dist/esm/src/websocket.d.ts') diff --git a/frontend-old/node_modules/@firebase/ai/dist/esm/src/websocket.d.ts b/frontend-old/node_modules/@firebase/ai/dist/esm/src/websocket.d.ts deleted file mode 100644 index e2d511c..0000000 --- a/frontend-old/node_modules/@firebase/ai/dist/esm/src/websocket.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @license - * Copyright 2025 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * A standardized interface for interacting with a WebSocket connection. - * This abstraction allows the SDK to use the appropriate WebSocket implementation - * for the current JS environment (Browser vs. Node) without - * changing the core logic of the `LiveSession`. - * @internal - */ -export interface WebSocketHandler { - /** - * Establishes a connection to the given URL. - * - * @param url The WebSocket URL (e.g., wss://...). - * @returns A promise that resolves on successful connection or rejects on failure. - */ - connect(url: string): Promise; - /** - * Sends data over the WebSocket. - * - * @param data The string or binary data to send. - */ - send(data: string | ArrayBuffer): void; - /** - * Returns an async generator that yields parsed JSON objects from the server. - * The yielded type is `unknown` because the handler cannot guarantee the shape of the data. - * The consumer is responsible for type validation. - * The generator terminates when the connection is closed. - * - * @returns A generator that allows consumers to pull messages using a `for await...of` loop. - */ - listen(): AsyncGenerator; - /** - * Closes the WebSocket connection. - * - * @param code - A numeric status code explaining why the connection is closing. - * @param reason - A human-readable string explaining why the connection is closing. - */ - close(code?: number, reason?: string): Promise; -} -/** - * A wrapper for the native `WebSocket` available in both Browsers and Node >= 22. - * - * @internal - */ -export declare class WebSocketHandlerImpl implements WebSocketHandler { - private ws?; - constructor(); - connect(url: string): Promise; - send(data: string | ArrayBuffer): void; - listen(): AsyncGenerator; - close(code?: number, reason?: string): Promise; -} -- cgit v1.2.3