ConnectionInfo
zmqtt.client.ConnectionInfo dataclass #
ConnectionInfo(
*,
connection_id: int,
session_present: bool,
return_code: int,
properties: ConnAckProperties | None,
effective_client_id: str,
effective_keepalive: int,
effective_session_expiry_interval: int | None,
)
Immutable snapshot of a successful CONNECT/CONNACK handshake.
effective_session_expiry_interval instance-attribute #
effective_session_expiry_interval: int | None
from_connack classmethod #
from_connack(
connect_packet: Connect,
connack: ConnAck,
*,
version: Literal["3.1.1", "5.0"],
connection_id: int,
) -> Self
Build a snapshot from a successful CONNECT/CONNACK exchange.
Source code in zmqtt/client.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | |