HTML5 websockets are (and have been for some time) a hot topic as they elegantly enable real-time server-side push.
I currently have a working application with websockets powered by Tomcat 7.0.30 which includes websocket support. But moving this to a production environment raises questions.
Mainly I would like to know the possible maximum number of connections that can operate (be open) concurrently per browsing session; a browsing session implies a single browser tab or window.
Do open websocket connections add up to the maximum number of connections that can be processed simultaneously by the Web server? E.g. MaxClients
in Apache.
Conversely, is the maximum number of websockets for a single browsing session limited by the browser itself? As this blog post shows, up to April 2012, different browsers support varying amounts of open websocket connections. (I personally would aim for 1 open websocket per browsing session; but this info would still be good to know).
TL/DR:
- What limits the amount of possible websockets per browsing session? Is it the client? The server? Or a combination of both?
- Does the same limitation(s) apply to both
ws:
andwss:
connections?