This commit is contained in:
LouisLam 2021-10-01 00:26:27 +08:00
parent b246c8e0f2
commit 8d5eaaf8a7

View file

@ -35,6 +35,9 @@ router.get("/api/push/:pushToken", async (request, response) => {
bean.status = UP;
bean.msg = msg;
// TODO: HOW TO?
//bean.ping
await R.store(bean);
io.to(monitor.user_id).emit("heartbeat", bean.toJSON());