Skip to content

Commit

Permalink
Remove region tag: add_listener (#11924)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteatamel committed Jun 26, 2024
1 parent 32d4517 commit 06f14de
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions appengine/standard/firebase/firetactoe/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,12 @@ function initGame(gameKey, me, token, channelId, initialMessage) {
});
// [END auth_login]

// [START add_listener]
// setup a database reference at path /channels/channelId
channel = firebase.database().ref('channels/' + channelId);
// add a listener to the path that fires any time the value of the data changes
channel.on('value', function(data) {
onMessage(data.val());
});
// [END add_listener]
onOpened();
// let the server know that the channel is open
}
Expand Down

0 comments on commit 06f14de

Please sign in to comment.