Skip to content

Commit bb28fe6

Browse files
authored
Update client_alice.html
replace login with createSession for v.9.0.0
1 parent a0caded commit bb28fe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app-to-app-js/client_alice.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1>App from App Call (Alice)</h1>
1414
const btnCall = document.getElementById("btn-call");
1515
const btnHangUp = document.getElementById("btn-hangup");
1616
new NexmoClient({ debug: true })
17-
.login(aliceJWT)
17+
.createSession(aliceJWT)
1818
.then(app => {
1919
btnCall.addEventListener("click", () => {
2020
console.log("Calling Bob...");
@@ -30,4 +30,4 @@ <h1>App from App Call (Alice)</h1>
3030
.catch(console.error);
3131
</script>
3232
</body>
33-
</html>
33+
</html>

0 commit comments

Comments
 (0)