socket.io-client: make global/external agnostic.