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

Method run

examples/unix_socket_client.py:33–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 print(f"Error in receive loop: {e}")
32
33 async def run(self):
34 await self.connect()
35 if self.reader and self.writer:
36 asyncio.create_task(self.receive_loop())
37 while True:
38 await self.send("ping from client")
39 await asyncio.sleep(2)
40
41if __name__ == "__main__":
42 SOCKET_PATH = "/tmp/pi-webrtc-ipc.sock"

Callers 4

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

connectMethod · 0.95
receive_loopMethod · 0.95
sendMethod · 0.95

Tested by 2

mainFunction · 0.64
mainFunction · 0.64