Reputation: 1327
I use swift version of Socket.IO and there is only one connection handled by a singleton in an app that I am working.
But in the inspector, it says two tcp ports(49209, 49210) are being used constantly. Is this normal behind the scenes?
Upvotes: 13
Views: 268
Reputation: 2145
This is due to a browsers behaviour. Modern browsers open always two (or more) connections in order to speed up loading of ressources through parallelisation.
Upvotes: 2