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

Commit

Permalink
fix: enable text streaming for React Native on log.tail
Browse files Browse the repository at this point in the history
  • Loading branch information
acostalima committed Mar 4, 2021
1 parent 7e33d82 commit 04ea765
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
28 changes: 15 additions & 13 deletions packages/ipfs-http-client/.aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ const server = createServer({
ipfsBin: require('go-ipfs').path()
})

module.exports = {
bundlesize: { maxSize: '83kB' },
hooks: {
browser: {
pre: async () => {
await server.start()
},
post: async () => {
await server.stop()
}
}
}
}
server.start()

// module.exports = {
// bundlesize: { maxSize: '83kB' },
// hooks: {
// browser: {
// pre: async () => {
// await server.start()
// },
// post: async () => {
// await server.stop()
// }
// }
// }
// }
5 changes: 4 additions & 1 deletion packages/ipfs-http-client/src/log/tail.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module.exports = configure(api => {
timeout: options.timeout,
signal: options.signal,
searchParams: toUrlSearchParams(options),
headers: options.headers
headers: options.headers,
reactNative: {
textStreaming: true
}
})

yield * res.ndjson()
Expand Down

0 comments on commit 04ea765

Please sign in to comment.