Browser-laptop: feature request: stream responses from protocol handlers

Created on 22 Aug 2017  路  4Comments  路  Source: brave/browser-laptop

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.

suggestion

Most helpful comment

Getting chrome.protocol.registerStreamProtocol available would really help.

All 4 comments

Getting chrome.protocol.registerStreamProtocol available would really help.

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

I've ported https://github.com/electron/electron/pull/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.

PR for discussion here: https://github.com/brave/muon/pull/507

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonathansampson picture jonathansampson  路  3Comments

lukemulks picture lukemulks  路  3Comments

shortstuffsushi picture shortstuffsushi  路  3Comments

luixxiul picture luixxiul  路  3Comments

bbondy picture bbondy  路  3Comments