Defines the Config for Phoenix
Minimal config needed for Phoenix.push
Extensible config type used by Phoenix.push
Creates a new config. The output of this must be piped into withStaticChannels or withDynamicChannels
Sets the config to connect to a list of static channels.
Sets the config to allow the use of dynamic channels
As an optimisation, the library compares the passed channels model with the version from the previous functional call and then only calls the provided channels function if the model has changed.
This comparison is done by default with == and due to an issue in Elm, comparing a model with a contained Json.Encode.Value can cause a runtime exception. (See https://github.com/elm/core/issues/1058).
To solve this, you can provide a custom function that will compare channels models safely.
Enable debug logs. Every incoming and outgoing message will be printed.
Create a config that can be used for Phoenix.push from the config. This has a simple type and
is useful if used in a multi-page app with delegating update functions.
Maps the push config
The config for Phoenix