fixed connection

fixed connection for socket.io 1.x
Merge pull request #1 from G3z/patch-1

fixed connection