You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: