Use `io` from the local namespace

If `socket.io` is wrapped, we should use the local `io`.