chore(release): 0.3.0 #5

Merged
pufereq merged 30 commits from release/0.3.0 into main 2025-11-30 17:39:26 +00:00
4 changed files with 202 additions and 145 deletions
Showing only changes of commit 5458281186 - Show all commits

View File

@@ -89,6 +89,17 @@ class Connector:
self.logger.error(f"[!] Socket error: {e}")
self.reconnect()
def send(self, message: Message) -> None:
"""Send a message to the server.
Args:
message (Message): The message to send.
"""
self.logger.debug(f"[>] Queueing message to send: {message}")
if message.ack_required:
self.pending_acks[message.id] = (message, time.time())
self.outbound_buffer += message.to_bytes()
def send_hello(self) -> None:
"""Send a HELLO message to the server."""
self.logger.debug("[*] Sending HELLO message...")