Skip to content

Commit 9aa0cbb

Browse files
committed
Added clarifying notes to changes to SignalR initialization process
1 parent d8d87bf commit 9aa0cbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/serverless-microservices-web/src/components/SignalRTrips.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export default {
2121
},
2222
watch: {
2323
user(val, old) {
24+
// We watch for the username to change due to logging in or out.
25+
// If the username was previously null, but now isn't, then we
26+
// connect to SignalR Service.
2427
if (old === null && val !== null) {
2528
this.connectToSignalR();
2629
}

0 commit comments

Comments
 (0)