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

Don't send empty messages #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patmaddox
Copy link

Fixes #16

@patmaddox
Copy link
Author

It is easy enough for the client to look for [] events and ignore them - I thought it made more sense for the library to not send empty events at all though. What do you think?

@patmaddox
Copy link
Author

Turns out this makes it less reliable - messages can stop getting sent after a while. I still think it probably doesn't make sense to send empty messages (I'm seeing thousands of empty messages at a time sometimes). I'm just not sure how to do that...

@thbar
Copy link
Collaborator

thbar commented May 9, 2021

@patmaddox the "empty messages" problem seems to be fixed by #15. I will incorporate it into my own fork at https://github.com/thbar/ex-portmidi.

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

Successfully merging this pull request may close these issues.

Confused about event API, especially empty messages []
2 participants