allow to pass in a different resource than just 'socket.io'

Most socket.io servers run at /socket.io - which was hardcoded in the client. This change allows to override the location to be whatever one requires it to be.