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

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -