Skip to content

Commit

Permalink
Go back using xmlhttprequest for bidi-streams (#8197)
Browse files Browse the repository at this point in the history
* Go back using xmlhttprequest for bidi-streams

* Create pink-beds-study.md
  • Loading branch information
wu-hui committed Apr 24, 2024
1 parent 36b283f commit e1a7764
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
@@ -0,0 +1,5 @@
---
"@firebase/firestore": patch
---

Go back using xmlhttprequest for bidi-streams, as fetch streams seem to be having connection issue.
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 e1a7764

Please sign in to comment.