node.js - Is each browser tab its own connection when using Socket.io? -


say there 5 open tabs in single browser, , using node.js , socket.io. client , server exchange packets maintain (establish) communications.

will connection client lost if of 1 tab closed?

how can determine if user closed browser?

yes, socket.io establishes new connection every tab. you're going want using session cookies figure out user current socket.io connection communicating with.


Comments

Popular posts from this blog

c# - MSAA finds controls UI Automation doesn't -

python - mat is not a numerical tuple : openCV error -

wordpress - .htaccess: RewriteRule: bad flag delimiters -