mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
implement getWSEndpoints
This commit is contained in:
parent
f22a488d49
commit
fd3a1e8930
@ -8,7 +8,20 @@ export default class ComplexController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getWSEndpoints() {
|
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() {
|
getEndpoints() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user