Documentation Index
Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
Use this file to discover all available pages before exploring further.
Advanced — for real-time integrations. Pair this with
instance.listen and call it during shutdown (or in a finally block) so the stream is closed cleanly.stop_listening() ends the bidirectional gRPC stream that listen() established, cancels the underlying transport, and clears the SDK’s reference to it. After this call returns, instance.is_listening is False and any subsequent instance.send_message calls raise ListeningNotActiveError. Calling stop_listening() when no stream is active is a safe no-op.
Parameters
This method takes no parameters.Returns
ReturnsNone.
Example
Raises
This method does not raise SDK errors under normal use. See Error Codes for the full SDK exception hierarchy.See also
- instance.listen — start the stream.
- instance.send_message — push events while the stream is open.
- shutdown — full SDK teardown, which also tears down any active stream.