function loginUser loginUser(userName: string,path: URL | string,): Promise<WebSocket> Login an existing user. Examples Example 1 document.getElementById("login")!.addEventListener("click", async (e)=> { e.preventDefault() const userName = (document.getElementById("username")! as HTMLInputElement).value await loginUser(userName, new URL("ws://localhost:5180/login")) }) Parameters userName: string Specifies the unique user name that is assigned to a user path: URL | string a url to the login endpoint of your socketauthn api Return Type Promise<WebSocket>