def swapRole(self):
        if self.view is None:
            self.logger.warn('Request to swap role when no view is being shared!')
            return
        if self.role == base.HOST_ROLE:
            self.logger.debug('Stopping ViewMonitorThread until role swap is decided')
            self.viewMonitorThread.destroy()
            self.viewMonitorThread.join()
        self.sendMessage(base.SWAP_ROLE)
Get all custom targeting key and value data
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/sub_collab/peer/basic.py/BasicPeer.swapRole--crossover with--dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/client.py/DFPClient.get_custom_targets