Skip to content

remove input listeners not accessable on disconnected event #229

@glend1

Description

@glend1

my environment is next.js. when i attach the following listener;

WebMidi.addListener("disconnected", (e) => {
    e.port.removeListener()
})

i get this error TypeError: e.port.removeListener is not a function

i tried e.target.removeListener() i don't get the error, but i also don't think it removes the listener(s).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions