added other PTT info
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user