Server
Mount@trytilde/embed-server with the agent listed, as for chat. The handler serves:
With more than one agent, add
agent to the body or ?agent=<id> to the URL.
Your server can do the same directly, for example to send a setup link by email:
Browser
"popup" instead of an element to open the page in a popup window. Call it from a click handler so the browser allows it.
In React:
onComplete fires when the user finishes and the connection is ready. Statuses are requires_action (setup not finished), ready, and failed. Use reconnect(id) for a failed connection and remove(id) to disconnect one.