Implement user online status

Resolve #7422
Fix #7424
This commit is contained in:
syuilo
2021-04-17 15:30:26 +09:00
parent 61461b7f59
commit 68571d8f57
10 changed files with 92 additions and 9 deletions

2
src/const.ts Normal file
View File

@@ -0,0 +1,2 @@
export const USER_ONLINE_THRESHOLD = 1000 * 60 * 10; // 10min
export const USER_ACTIVE_THRESHOLD = 1000 * 60 * 60 * 24 * 3; // 3days