Defines the API for the ports that are required to interface with JS.
This is just an internal implementation, but exposed so the types are available via
the implementation of the ports in PhoenixPorts (which must be installed via NPM). See README.md
for details.
This is the API that the ports module must implement.
These types are used internally to communicate between Elm and the JS ports code.
Message from a channel
Handlers to invoke on a push
Channel join params
Push params
Push reply params
Socket connect params
Socket closed params
Presence update reply params
Functions that need to implemented by Ports