Dynamically creates either a BoxApplet<Msg, Params> or a ClientApplet<Msg, Params> depending on the
environment.
The generic Msg should be set to the type of the applet-messages to send and receive between.
The optional generic Params should be set to the type of the custom parameters that were passed to the applet on start. (from the startApplet message).
The applet.isBox or applet.isClient fields can be used to narrow the type of applet.
Initialise a new
Applet<Msg, Params>instance.Dynamically creates either a BoxApplet
<Msg, Params>or a ClientApplet<Msg, Params> depending on the environment.Msgshould be set to the type of the applet-messages to send and receive between.Paramsshould be set to the type of the custom parameters that were passed to the applet on start. (from the startApplet message).The
applet.isBoxorapplet.isClientfields can be used to narrow the type of applet.