MCPcopy Create free account
hub / github.com/TzuHuanTai/RaspberryPi-WebRTC / send

Method send

examples/unix_socket_client.py:16–20  ·  view source on GitHub ↗
(self, message: str)

Source from the content-addressed store, hash-verified

14 print(f"Connection failed: {e}")
15
16 async def send(self, message: str):
17 if self.writer is not None:
18 self.writer.write(message.encode())
19 await self.writer.drain()
20 print(f"Sent: {message}")
21
22 async def receive_loop(self):
23 try:

Callers 1

runMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected