mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
emit event
This commit is contained in:
parent
262ba9c5c3
commit
2dd55c31fc
@ -7,6 +7,10 @@ export default class ComplexController {
|
||||
this.internalEvents = new EventEmitter()
|
||||
}
|
||||
|
||||
getWSEndpoints() {
|
||||
//TODO: implement
|
||||
}
|
||||
|
||||
getEndpoints() {
|
||||
let endpoints = []
|
||||
|
||||
@ -45,6 +49,7 @@ export default class ComplexController {
|
||||
const result = await fn(...args)
|
||||
return resolve(result)
|
||||
} catch (error) {
|
||||
this.internalEvents.emit("requestError", error)
|
||||
return reject(error)
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user