Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Enable text streaming support for React Native (iOS and Android) on pubsub.subscribe #3488

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/ipfs-http-client/src/pubsub/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ module.exports = configure((api, options) => {
arg: topic,
...options
}),
headers: options.headers
headers: options.headers,
// Enables text streaming support for React Native when using @react-native-community/fetch
reactNative: {
textStreaming: true
}
})
.catch((err) => {
// Initial subscribe fail, ensure we clean up
Expand Down