@firebase/firestore 4.7.16 → 4.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ import { WebChannel } from '@firebase/webchannel-wrapper/webchannel-blob';
17
18
  import { Token } from '../../api/credentials';
18
19
  import { DatabaseInfo } from '../../core/database_info';
19
20
  import { Stream } from '../../remote/connection';
@@ -24,7 +25,23 @@ export declare class WebChannelConnection extends RestConnection {
24
25
  private readonly autoDetectLongPolling;
25
26
  private readonly useFetchStreams;
26
27
  private readonly longPollingOptions;
28
+ /** A collection of open WebChannel instances */
29
+ private openWebChannels;
27
30
  constructor(info: DatabaseInfo);
28
31
  protected performRPCRequest<Req, Resp>(rpcName: string, url: string, headers: StringMap, body: Req, _forwardCredentials: boolean): Promise<Resp>;
29
32
  openStream<Req, Resp>(rpcName: string, authToken: Token | null, appCheckToken: Token | null): Stream<Req, Resp>;
33
+ /**
34
+ * Closes and cleans up any resources associated with the connection.
35
+ */
36
+ terminate(): void;
37
+ /**
38
+ * Add a WebChannel instance to the collection of open instances.
39
+ * @param webChannel
40
+ */
41
+ addOpenWebChannel(webChannel: WebChannel): void;
42
+ /**
43
+ * Remove a WebChannel instance from the collection of open instances.
44
+ * @param webChannel
45
+ */
46
+ removeOpenWebChannel(webChannel: WebChannel): void;
30
47
  }