Add radio support
This commit is contained in:
parent
c7f53df4af
commit
c828e106b0
15 changed files with 604 additions and 468 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue