Comments (3)
@mikaelkaron - This is a very good observation.
It was actually not possible to listen for these events with the current microcule
architecture.
The crux of the issue is that we needed to open an additional STDIO channel 3
to handle HTTP request / response methods. Currently we are handling all response methods over STDERR
which is STDIO channel 2
. This has been long discussed in the hook.io repo with @pyhedgehog ( among others )
Good news, I've now opened up STDIO 3
in the pipe3
branch, and we should now be able to listen for the events you need.
Please feel free to test this branch out. It shouldn't break anything, but I should do further testing downstream to ensure it's not going to break anything. Overall, this was a much needed feature. I'm hoping to eventually migrate our overloaded STDERR
channel to use the new pipe3
.
from microcule.
I'm a bit confused, because this was and has previously been working on hook.io. I don't think we need pipe3
for this?
see:
https://hook.io/examples/javascript-stream-transform
https://hook.io/examples/javascript-stream-transform/source
It's still working on hook.io, so maybe it was with a recent version of microcule
which hasn't been deployed or we both experienced the same testing bug.
Going to investigate further.
from microcule.
Yeah, not sure what happened here. There was a disconnect somewhere, but we do have and already had this functionality.
We do have streaming examples checked into the repo which can be tested with curl commands.
I've commented out the pipe3
code for now, but left it in-tact. We should probably use this new code path for migrating from overloading STDERR
with http response methods.
from microcule.
Related Issues (20)
- Implement associative arrays for bash services HOT 1
- Ensure that lua variable names and values are escaped
- Update node.js function signature HOT 1
- Can't require local files HOT 3
- Refactor `spawn` plugin into separate module
- Switch `coffee-script` and `babel` to new compiled languages plugin
- Improve bash escape code HOT 1
- Implement JSON support for `golang` and `rust`
- microcule + x-ray + docker streaming error HOT 5
- DeprecationWarnings are written out on the console HOT 3
- Support https connections HOT 2
- spawn EACCESS
- Using nodejs microcule.plugins.spawn doesn't close connection HOT 7
- Populate $_GET and $_POST scope for PHP services
- Add support for .Net Core HOT 2
- Discrepancy in Github and npm installation HOT 3
- How to support logging (console.log) statement in microcule example java script index.js file? HOT 6
- Support websocket connections HOT 2
- Test failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microcule.