summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
commit434aa8343fdcbb4d5002f934979913c099489bee (patch)
tree55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts
parent893c388d4e99442a36005e5971a87730623f946e (diff)
sdk, del
Diffstat (limited to 'frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts')
-rw-r--r--frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts102
1 files changed, 0 insertions, 102 deletions
diff --git a/frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts b/frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts
deleted file mode 100644
index e20e244..0000000
--- a/frontend-old/node_modules/@firebase/database/dist/src/realtime/Connection.d.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
- * @license
- * Copyright 2017 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.
- */
-import { RepoInfo } from '../core/RepoInfo';
-/**
- * Creates a new real-time connection to the server using whichever method works
- * best in the current browser.
- */
-export declare class Connection {
- id: string;
- private repoInfo_;
- private applicationId_;
- private appCheckToken_;
- private authToken_;
- private onMessage_;
- private onReady_;
- private onDisconnect_;
- private onKill_;
- lastSessionId?: string;
- connectionCount: number;
- pendingDataMessages: unknown[];
- sessionId: string;
- private conn_;
- private healthyTimeout_;
- private isHealthy_;
- private log_;
- private primaryResponsesRequired_;
- private rx_;
- private secondaryConn_;
- private secondaryResponsesRequired_;
- private state_;
- private transportManager_;
- private tx_;
- /**
- * @param id - an id for this connection
- * @param repoInfo_ - the info for the endpoint to connect to
- * @param applicationId_ - the Firebase App ID for this project
- * @param appCheckToken_ - The App Check Token for this device.
- * @param authToken_ - The auth token for this session.
- * @param onMessage_ - the callback to be triggered when a server-push message arrives
- * @param onReady_ - the callback to be triggered when this connection is ready to send messages.
- * @param onDisconnect_ - the callback to be triggered when a connection was lost
- * @param onKill_ - the callback to be triggered when this connection has permanently shut down.
- * @param lastSessionId - last session id in persistent connection. is used to clean up old session in real-time server
- */
- constructor(id: string, repoInfo_: RepoInfo, applicationId_: string | undefined, appCheckToken_: string | undefined, authToken_: string | undefined, onMessage_: (a: {}) => void, onReady_: (a: number, b: string) => void, onDisconnect_: () => void, onKill_: (a: string) => void, lastSessionId?: string);
- /**
- * Starts a connection attempt
- */
- private start_;
- private nextTransportId_;
- private disconnReceiver_;
- private connReceiver_;
- /**
- * @param dataMsg - An arbitrary data message to be sent to the server
- */
- sendRequest(dataMsg: object): void;
- tryCleanupConnection(): void;
- private onSecondaryControl_;
- private onSecondaryMessageReceived_;
- private upgradeIfSecondaryHealthy_;
- private proceedWithUpgrade_;
- private onPrimaryMessageReceived_;
- private onDataMessage_;
- private onPrimaryResponse_;
- private onControl_;
- /**
- * @param handshake - The handshake data returned from the server
- */
- private onHandshake_;
- private tryStartUpgrade_;
- private startUpgrade_;
- private onReset_;
- private onConnectionEstablished_;
- private sendPingOnPrimaryIfNecessary_;
- private onSecondaryConnectionLost_;
- /**
- * @param everConnected - Whether or not the connection ever reached a server. Used to determine if
- * we should flush the host cache
- */
- private onConnectionLost_;
- private onConnectionShutdown_;
- private sendData_;
- /**
- * Cleans up this connection, calling the appropriate callbacks
- */
- close(): void;
- private closeConnections_;
-}