implement getWSEndpoints

This commit is contained in:
srgooglo 2022-02-21 09:45:35 +01:00
parent f22a488d49
commit fd3a1e8930

View File

@ -8,7 +8,20 @@ export default class ComplexController {
}
getWSEndpoints() {
//TODO: implement
if (typeof this.channels !== "object") {
return false
}
const keys = Object.keys(this.channels)
return keys.map((key) => {
const dispatch = this.channels[key]
return {
on: key,
dispatch: dispatch,
}
})
}
getEndpoints() {