- send() uses bytes no Msg

This commit is contained in:
2026-03-23 15:42:24 +01:00
parent f24224623e
commit 4427995ed6
5 changed files with 41 additions and 5 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ class NetworkBackend(ABackend):
self.thread = Thread(target=self.event_loop)
self.loop_enable = True
def send(self, name: str, msg: MsgContainer):
def send(self, name: str, data: bytes):
sock = self.find_by_name(name)
sock['queue'].put(msg)
sock['queue'].put(data)
if sock is not None:
self.sel.modify(sock['sock'], selectors.EVENT_READ + selectors.EVENT_WRITE, None)