Skip to content

Does "readStream" cost any data download? #265

Answered by mobizt
afung2468 asked this question in Q&A
Discussion options

You must be logged in to vote

Because you don't understand what is sever event streaming.

The readStrean function is only polling check the data available from the server without sending anything to sever and it's impossible to cause your high data bandwidth.

Only when changes in sever streaming node occurred, the data will be pushed to client, and this data will read out by readStream.

The download bandwidth is due to you use get/set/push/update too frequently in loop instead of readStream.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@afung2468
Comment options

Answer selected by mobizt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants