Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unshift is now a function in node streams #5

Open
twiggy opened this issue Aug 31, 2018 · 1 comment
Open

unshift is now a function in node streams #5

twiggy opened this issue Aug 31, 2018 · 1 comment

Comments

@twiggy
Copy link

twiggy commented Aug 31, 2018

When patching a socket you can override the native unshift method. Probably need to rename it to something safer.

https://nodejs.org/api/stream.html#stream_readable_unshift_chunk

@Qard
Copy link
Owner

Qard commented Sep 6, 2018

It looks like a fork already exists using another name: https://www.npmjs.com/package/event-pre-handler

As I do not use this module anymore, I'd recommend using that, or finding another similar module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants