connected Property
This property is used to disconnect individual connections and/or show their status.
Syntax
def get_connected(connection_id: int) -> bool: ... def set_connected(connection_id: int, value: bool) -> None: ...
Default Value
FALSE
Remarks
This property is used to disconnect individual connections and/or show their status.
The connected property may be set to false to close the connection.
connected also shows the status of a particular connection (connected/disconnected).
How and when the connection is closed is controlled by the linger property. Please refer to its description for more information.
The connection_id parameter specifies the index of the item in the array. The size of the array is controlled by the connection_count property.