Skip to content

Commit

Permalink
Merge 97f457a into 03069bb
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-hui authored Apr 22, 2024
2 parents 03069bb + 97f457a commit 402b93d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-beds-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@firebase/firestore": patch
---

Go back using xmlhttprequest for bidi-streams, as fetch streams seem to be having connection issue.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import {
EventTarget,
StatEvent,
Event,
Stat
Stat,
FetchXmlHttpFactory
} from '@firebase/webchannel-wrapper';

import { Token } from '../../api/credentials';
Expand Down Expand Up @@ -208,7 +209,7 @@ export class WebChannelConnection extends RestConnection {
}

if (this.useFetchStreams) {
request.useFetchStreams = true;
request.xmlHttpFactory = new FetchXmlHttpFactory({});
}

this.modifyHeadersForRequest(
Expand Down

0 comments on commit 402b93d

Please sign in to comment.