mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-18 23:04:20 +01:00
ping is a property
This commit is contained in:
@@ -64,6 +64,7 @@ class Relay:
|
||||
time.sleep(1)
|
||||
self.connect(self.ssl_options)
|
||||
|
||||
@property
|
||||
def ping(self):
|
||||
if self.connected:
|
||||
return int(self.ws.last_ping_tm - self.ws.last_pong_tm)
|
||||
|
||||
Reference in New Issue
Block a user