We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a758005 commit 8677a06Copy full SHA for 8677a06
1 file changed
pythonosc/tcp_client.py
@@ -127,18 +127,18 @@ class TCPDispatchClient(SimpleTCPClient):
127
128
dispatcher = Dispatcher()
129
130
- def handle_messages(self, timeout: int = 30) -> None:
+ def handle_messages(self, timeout_sec: int = 30) -> None:
131
"""Wait :int:`timeout` seconds for a message from the server and process each message with the registered
132
handlers. Continue until a timeout occurs.
133
134
Args:
135
timeout: Time in seconds to wait for a message
136
"""
137
- r = self.receive(timeout)
+ r = self.receive(timeout_sec)
138
while r:
139
for m in r:
140
self.dispatcher.call_handlers_for_packet(m, (self.address, self.port))
141
142
143
144
class AsyncTCPClient:
0 commit comments