MCPcopy
hub / github.com/blakeblackshear/frigate / send_data

Method send_data

frigate/comms/inter_process.py:76–82  ·  view source on GitHub ↗

Sends data and then waits for reply.

(self, topic: str, data: Any)

Source from the content-addressed store, hash-verified

74 self.socket.connect(SOCKET_REP_REQ)
75
76 def send_data(self, topic: str, data: Any) -> Any:
77 """Sends data and then waits for reply."""
78 try:
79 self.socket.send_json((topic, data))
80 return self.socket.recv_json()
81 except zmq.ZMQError:
82 return ""
83
84 def stop(self) -> None:
85 self.socket.close()

Callers 15

kickoff_model_trainingFunction · 0.95
runMethod · 0.45
process_framesFunction · 0.45
search_thumbnailMethod · 0.45
search_descriptionMethod · 0.45
register_faceMethod · 0.45
recognize_faceMethod · 0.45
reprocess_faceMethod · 0.45
clear_face_classifierMethod · 0.45
delete_face_idsMethod · 0.45
rename_faceMethod · 0.45
update_descriptionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected