javascript - How to handle this Firebase error -
i error seems should handled don't know how because error happening on firebase sdk
app.js:35774 uncaught (in promise) error: disconnect @ repo_1.repo.reruntransactionqueue_ (app.js:35774) @ repo_1.repo.reruntransactions_ (app.js:35686) @ object.<anonymous> (chat.js:35666) @ persistentconnection.cancelsenttransactions_ (app.js:33032) @ persistentconnection.onrealtimedisconnect_ (app.js:32911) @ connection.close (app.js:32266) @ connection.onconnectionlost_ (app.js:32232) @ websocketconnection.<anonymous> (app.js:31964) @ websocketconnection.onclosed_ (app.js:31647) @ websocket.mysock.onclose (app.js:31504)
it happens during disconnection event. have transaction code might connected error, although i'm not sure why might causing error:
var timeupdate = 300 firebaseapp.ref.child('sessions') .child('sid') .child('time_on') .transaction((v) => { return v + timeupdate })
if need more info, let me know update post
Comments
Post a Comment