From cfbb3b19b5bed7d19bba287851b56b8963fc819a Mon Sep 17 00:00:00 2001 From: Kevin Gordillo Date: Fri, 31 Jul 2026 22:21:40 +0000 Subject: [PATCH] refactor: remove redundant cloud sample markers from database listener implementation --- .../firebase-tictactoe/src/main/webapp/static/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/appengine-java8/firebase-tictactoe/src/main/webapp/static/main.js b/appengine-java8/firebase-tictactoe/src/main/webapp/static/main.js index 6ae24b0247d..20d43818160 100644 --- a/appengine-java8/firebase-tictactoe/src/main/webapp/static/main.js +++ b/appengine-java8/firebase-tictactoe/src/main/webapp/static/main.js @@ -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 }