node.js - Streaming an API using request module -


the api endpoint need access provides live streaming option only. need regular non streaming api. using request node module can achieve this?

you can hook stream on server , store data arrives in stream locally on server in database , when rest request comes in data, in local database , satisfy request database (the traditional, non-streaming way).

other that, can't figure out else might trying do. cannot "turn streaming api non-streaming one". aren't close same thing. streaming api subscribing feed of information. don't make request, new data sent when it's available. typical non-streaming api client makes specific request , server responds data specific request.

here's discussion of twitter streaming api might helpful: https://dev.twitter.com/streaming/overview


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -