OptionalrequestHow long a request may wait for its reply. Default 60 000 ms (applying a view waits for loads).
OptionalsignalAborting stops the handshake (it rejects with aborted) or, once connected, closes the connection.
OptionaltimeoutHow long the handshake may take. Default 10 000 ms.
OptionalviewerThe viewer's window (window.parent); when given, offers from any other window are ignored.
OptionalwantsThe capabilities whose events you want; omitted: all.
OptionalwindowWhere window messages arrive. Default: globalThis (the page's window).
Exactly the viewer's origin, e.g.
https://viewer.example.