Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to keep the original stream data unchanged? #108
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ahrtr commentedApr 10, 2018
•
edited
I am using event-stream to process a http request payload. The payload is a JSON stream (new line separated JSON), and I want to extract all the interested fields. The code is something like below,
Basically the above code works well. But the issue is that it modifies the original payload, so the following operation which depends on the payload as well fails. How can I keep the original data being unchanged? Thanks!