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