grid.workers.socketio_client¶
Module Contents¶
-
class
grid.workers.socketio_client.WebsocketIOClientWorker(hook, host: str, port: int, id: Union[int, str] = 0, is_client_worker: bool = False, log_msgs: bool = False, verbose: bool = False, data: List[Union[torch.Tensor, AbstractTensor]] = None)¶ Bases:
syft.workers.virtual.VirtualWorkerA worker that forwards a message to a SocketIO server and wait for its response.
This client then waits until the server returns with a result or an ACK at which point it finishes the _recv_msg operation.
-
_send_msg(self, message: bin)¶
-
_recv_msg(self, message: bin)¶
-
connect(self)¶
-
disconnect(self)¶
-