Remove some redundant checks

I would love to have another pair of eyes here, especially for Socket.IO.
I would keep this. I don't remember the implications if we remove this so just to be save here, I would keep this. I faguely remember as being a solution to connection pooling/multiplexing bugs in socket.io