Sends data and then waits for reply.
(self, topic: str, data: Any)
| 74 | self.socket.connect(SOCKET_REP_REQ) |
| 75 | |
| 76 | def send_data(self, topic: str, data: Any) -> Any: |
| 77 | """Sends data and then waits for reply.""" |
| 78 | try: |
| 79 | self.socket.send_json((topic, data)) |
| 80 | return self.socket.recv_json() |
| 81 | except zmq.ZMQError: |
| 82 | return "" |
| 83 | |
| 84 | def stop(self) -> None: |
| 85 | self.socket.close() |
no outgoing calls
no test coverage detected