()
| 52 | }) |
| 53 | }, |
| 54 | async shutdown() { |
| 55 | Log.Default.info("worker shutting down") |
| 56 | await Instance.disposeAll() |
| 57 | // TODO: this should be awaited, but ws connections are |
| 58 | // causing this to hang, need to revisit this |
| 59 | server.stop(true) |
| 60 | }, |
| 61 | } |
| 62 | |
| 63 | Rpc.listen(rpc) |