node.js - Handling Nodejs streams with AngularJS -


I am using nodes js stream to fetch data from my level database (using leveldb) one of the code here The snippet I use is:

  app.get ('/ my / route', function (req, res, next) {leveldb.createValueStream (options) .pipe (map). Obj (function (hash) {level.get (somekeys, functions (mistake, item) {return item}}}))) .pipe (res)})   

So far, I Using the list-stream module to get data on the client side.

Now I want to get information on the client side as a stream. I have read this post () how to do it using socket.io but I do not want to use socket. O

Is there any easy way to do this?

It can be done together. You have to compile the client code with the broadcast and you can get a stream in the browser that receives the data from the server.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -