def process_offer(self, destination: str, content: str): """ Create a thread to process a webrtc offer connection. """ self._connections[destination] = WebRTCConnection( self._grid, self.worker, destination, self._connections, WebRTCConnection.ANSWER ) self._connections[destination].set_msg(content) self._connections[destination].start()
def start_offer(self, destination: str): """ Create a new thread to offer a webrtc connection. """ self._connections[destination] = WebRTCConnection( self._grid, self.worker, destination, self._connections, WebRTCConnection.OFFER, ) self._connections[destination].start()
def start_offer(self, destination: str): """ Create a new thread to offer a webrtc connection. """ # Temporary Notebook async weird constraints # Should be removed after solving #3572 if len(self._connections) >= 1: print( "Due to some jupyter notebook async constraints, we do not recommend handling multiple connection peers at the same time." ) print("This issue is in WIP status and may be solved soon.") print( "You can follow its progress here: https://github.com/OpenMined/PySyft/issues/3572" ) return self._connections[destination] = WebRTCConnection( self._grid, self.worker, destination, self._connections, WebRTCConnection.OFFER) self._connections[destination].start()