-1

Is there any socket method or any other way to differentiate between tab close and refresh browser in node.js?

Vardan
  • 454
  • 1
  • 5
  • 18
  • 1
    pls also tell the reason if you vote down.. – Vardan Jun 04 '14 at 09:21
  • your understanding is so wrong it's impossible to even say anything... Node.js is server side, there is no tabs or browser – Esailija Jun 04 '14 at 11:37
  • yes node.js is server side. like 'disconnect' method is fired when we close the tab of browser or refresh the browser. I just want to differentiate between two. – Vardan Jun 04 '14 at 13:39
  • Does this answer your question? [Identifying Between Refresh And Close Browser Actions](https://stackoverflow.com/questions/568977/identifying-between-refresh-and-close-browser-actions) – Heretic Monkey May 06 '20 at 12:17

1 Answers1

1

There is no way to distinguish between browser tab close and browser tab refresh in node.js. But i find a way via javascript. Here it is

Vardan
  • 454
  • 1
  • 5
  • 18