services.client_service_context
ClientServiceContext Objects
class ClientServiceContext(ServiceContext)
A service context tailored towards working with a client connection.
set_remote_channel
@staticmethod
def set_remote_channel(channel: Channel | None) -> None
Sets (or resets) the remote channel.
Arguments:
channel- The remote or channel, or None.
remote_channel
@property
def remote_channel() -> Channel
The remote channel.
Raises:
RuntimeError- If no connection exists.
is_connected
@property
def is_connected() -> bool
Whether the client is connected.