@viviedu/applet-sdk
    Preparing search index...

    Function newClientApplet

    • Initialise a new ClientApplet<Msg, Params> instance. Will error if called in a box applet.

      • 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).

      Type Parameters

      • Msg
      • Params extends BaseParams = never

      Parameters

      • Optionalopts: AppletOptions

        The initialisation options.

        • Optionallog?: boolean

          Whether the SDK should log out verbose messaging for this applet.

      Returns Promise<ClientApplet<Msg, Params>>