This commit is contained in:
nocnico
2025-05-21 23:52:53 +02:00
3 changed files with 31 additions and 20 deletions

View File

@@ -132,5 +132,14 @@ const handlePTT = (data: PTTData) => {
}
};
const handleOtherPTT = (data: PTTData) => {
console.log("Other PTT", data);
useAudioStore.setState({
source: data.source,
});
};
pilotSocket.on("ptt", handlePTT);
pilotSocket.on("other-ptt", handleOtherPTT);
dispatchSocket.on("ptt", handlePTT);
dispatchSocket.on("other-ptt", handleOtherPTT);