'Make sure the client version matches our own.'

def on_connect(self):

    daemon_version = self._conn.root.version()
    if (IPC_VERSION != daemon_version):
        self._conn.close()
        raise ValueError(u'Daemon    is    different    version    than    client.')
