This issue is related to this issue in socket.io-client
basically after calling socket.disconnect() from a namespace socket, trying to connect again to the same namespace will not use multiplexing.
from the Issue discussion it seems that this won't be fixed soon, but in the discussion a very easy workaround is suggested in this comment
I just wanted to report it here too because I think the intention of this library is to not use multiple sockets without reason