Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

feature request: stream responses from protocol handlers #10629

Open
daviddias opened this issue Aug 22, 2017 · 4 comments
Open

feature request: stream responses from protocol handlers #10629

daviddias opened this issue Aug 22, 2017 · 4 comments

Comments

@daviddias
Copy link

Currently, signature for a protocol handler is function (request, callback) where callback is a function that takes on argument, the response body.

image

Is it possible to support a streaming response? I'm interested on this for the IPFS integration so that I can stream large files from the network.

@olizilla
Copy link

Getting chrome.protocol.registerStreamProtocol available would really help.

@olizilla
Copy link

I'm working on porting registerStreamProtocol from electron to muon.

I've ported electron/electron#11008 and tracked down the dependent changes and tweaks to get muon compilable again. I'm now figuring out how send the stream over ipc from the render to the main process. I'll tidy it up and raise a PR later today.

@olizilla
Copy link

@olizilla
Copy link

olizilla commented Feb 23, 2018

PR for discussion here: brave/muon#507

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants