OptionalchannelExactly the viewer's origin, e.g. https://viewer.example.
OptionalrequestHow long a request may wait for its reply. Default 60 000 ms (applying a view waits for loads).
OptionalresumeWhere the previous page of this host left off (ViewerConnection.resumePoint, kept across the reload): a viewer
with connection.resume sends the events that page missed again. Events are numbered whether or not it is given.
OptionalretryResend the hello this often until it is answered. Default 500 ms.
OptionalroleOptionalsignalAborting stops the handshake (it rejects with aborted) or, once connected, closes the connection.
OptionaltimeoutHow long the handshake may take. Default 10 000 ms.
The viewer's window: iframe.contentWindow, or what window.open returned.
OptionalwantsThe capabilities whose events you want; omitted: all.
OptionalwindowWhere window messages arrive. Default: globalThis (the page's window).
For tests: makes the channel. Default:
new MessageChannel().