Disclaimer: If this exists and I just blatantly missed it, sorry. I've spent way too much time trying to figure out where the ports might be hidden, and finally descended into the git history of elm-native-ui and found some remnants of a callback that I decided to piece "back" together. If this doesn't make sense or is superfluous, just close and please, tell me where ports are 😅
Allow passing a callback function to start that is, upon app
initialization, called with the app instance as a single argument. This
lets you, e.g., set up ports with something like this:
Disclaimer: If this exists and I just blatantly missed it, sorry. I've spent way too much time trying to figure out where the ports might be hidden, and finally descended into the git history of elm-native-ui and found some remnants of a callback that I decided to piece "back" together. If this doesn't make sense or is superfluous, just close and please, tell me where ports are 😅
Allow passing a callback function to start that is, upon app initialization, called with the app instance as a single argument. This lets you, e.g., set up ports with something like this: