Skip to main content
Hugs › Reference
Everything a page can know or do is in @getcliqio/hug-frontend. mount_hug and useHug are built on this API; use it directly only when they don’t fit, or through the hug they hand you.

connect(options?)

Resolves once with everything the page needs, after the host’s init. Rejects with HugError: not_in_runtime (not in a Hug host — use cliq hug dev), protocol_unsupported, timeout.

The Hug

Errors

HugError with a code:

Other exports

The low level, for comparison

review-batch without mount_hug:
The whole page is the low-level example.