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

Missing unpipe function? #152

Open
EdoardoSchnell opened this issue Oct 20, 2019 · 0 comments
Open

Missing unpipe function? #152

EdoardoSchnell opened this issue Oct 20, 2019 · 0 comments
Labels

Comments

@EdoardoSchnell
Copy link

Hi, I was trying to call unpipe to disconnect two streams previously connected but the function appears to be missing.

Code to reproduce:

    const inputDevice = new midi.Input();
    inputDevice.openVirtualPort('test input port');
    const outputDevice = new midi.Output();
    outputDevice.openVirtualPort('test output port');
    const rs = midi.createReadStream(inputDevice);
    const ws = midi.createWriteStream(outputDevice);
    rs.pipe(ws);
    rs.unpipe(ws);

This leads to

    TypeError: rs.unpipe is not a function

so I guess it is not implemented? If you could add it it would be awesome :D

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

No branches or pull requests

2 participants