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

Cleaner message handling #15

Closed
hensm opened this issue Jul 15, 2018 · 1 comment
Closed

Cleaner message handling #15

hensm opened this issue Jul 15, 2018 · 1 comment

Comments

@hensm
Copy link
Owner

hensm commented Jul 15, 2018

Message passing between the different destinations is fragile and difficult to understand.

Destinations:

Need some way to handle this cleanly. Possibly a separate library or util class that allows for registering a destination with a callback for sending messages. Needs to provide a message handler function to be called from runtime.onMessage / port.onMessage.

Should also document existing messages and order in which they're sent during initialization.

@hensm
Copy link
Owner Author

hensm commented Jul 17, 2018

27b5409 WIP

@hensm hensm closed this as completed Dec 11, 2018
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

1 participant