feat/add-basic-telemetry #15
@@ -6,6 +6,7 @@ from __future__ import annotations
|
||||
import logging as lg
|
||||
import socket
|
||||
import time
|
||||
from typing import Any
|
||||
|
||||
from judas_server.backend.client_status import ClientStatus
|
||||
|
||||
@@ -41,6 +42,8 @@ class Client:
|
||||
self.inbound: bytes = b""
|
||||
self.outbound: bytes = b""
|
||||
|
||||
self.initial_telemetry: dict[str, Any] | None = None
|
||||
|
||||
def __str__(self) -> str:
|
||||
if self.addr:
|
||||
return f"Client({self.id} ({self.addr[0]}:{self.addr[1]}))"
|
||||
|
||||
Reference in New Issue
Block a user