AllenNeuralDynamics / AllenNeuralDynamics/one-liner
Add `ping` to check connection
Aperta
- Lingua principale
- Python
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
It would be useful to have a standard, immediate method for checking if there's still a server connected to your RPC connection.
```python
def ping(self) -> bool:
...
```
There may be a standard zmq way to make this work, see these docs https://zguide.zeromq.org/docs/chapter4/#Heartbeating
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.