-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what about streams? #3
Comments
I don't know. I'm a bit sceptical to use streams in the browser - you generally don't need the backpressure stuff, so you can often quite easily use something else. Adding streams support in here would mean that browserifying this would include the full Wouldn't it be doable to have a separate module, extending this, that adds streams - like you did with https://github.com/dominictarr/rpc-with-streams? |
this module can be more than limited to browsers as clients |
I do not remember writing that! @juliangruber good point. you could have |
Alright, I'm convinced. Let's go with streams. @dominictarr I like the |
most node apis have a mix of streams and async functions.
So, rpc needs to have remote procedure calls and multiplexing.
or if you use http, then it needs streams at least.
To this end, I recently created this, https://github.com/dominictarr/muxrpc
to be used as part of secure-scuttlebutt.
Like rpc-http, it just takes a list of method names, except it takes multiple lists, to support both async calls and streams. so far muxrpc has async and source (readable) streams, because that is all I have needed so far. I plan to add sink (writable) later.
would you take a pull request that added streams to rpc-http in a compatible way?
The text was updated successfully, but these errors were encountered: