TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Walkercito/repod/llms.txt
Use this file to discover all available pages before exploring further.
Client class provides a low-level TCP client that runs asynchronous read/write loops in a daemon thread. It exposes thread-safe methods for sending messages and closing connections from the main thread.
Constructor
Server hostname or IP address.
Server port number.
Properties
(host, port) tuple for the remote server.Methods
start_background
send
Message dictionary. Should contain an
action key.Number of bytes queued, or
0 if disconnected.close
Full Example
Notes
- The client runs an asyncio event loop in a background daemon thread, allowing the main application loop to remain fully synchronous.
- Messages are queued and sent asynchronously via the background thread.
- The
send()method is thread-safe and can be called from any thread. - For most use cases, consider using ConnectionListener instead, which provides a higher-level interface.