function registerUser registerUser(userName: string,path: URL | string,): Promise<WebSocket> Register a new user. Examples Example 1 document.getElementById("register")!.addEventListener("click", async (e)=> { e.preventDefault() const userName = (document.getElementById("username")! as HTMLInputElement).value await registerUser(userName, new URL("ws://localhost:5180/register")) }) Parameters userName: string Specifies the unique user name that a new user wants. Can be an email for example path: URL | string a url to the register endpoint of your socketauthn api Return Type Promise<WebSocket>