Add radio support

This commit is contained in:
wvffle 2022-10-28 07:34:24 +00:00 committed by Georg Krause
commit c828e106b0
No known key found for this signature in database
GPG key ID: 2970D504B2183D22
15 changed files with 604 additions and 468 deletions

View file

@ -62,12 +62,12 @@ export const install: InitModule = ({ store }) => {
})
})
useWebSocketHandler('Listen', (event) => {
useWebSocketHandler('Listen', async (event) => {
if (store.state.radios.current && store.state.radios.running) {
const { current } = store.state.radios
if (current.clientOnly) {
CLIENT_RADIOS[current.type].handleListen(current, event, store)
await CLIENT_RADIOS[current.type].handleListen(current, event)
}
}
})