🎉 support client message push

This commit is contained in:
Song
2021-06-13 17:52:41 +08:00
parent fcb48d4ff0
commit 018d252e5d
11 changed files with 485 additions and 6 deletions
+5
View File
@@ -21,6 +21,11 @@ router.all('/:userPrefix/verify', (req, res, next) => {
}
});
router.get('/ws/:userPrefix/:token', async (ws, req) => {
const userPrefix = req.params.userPrefix;
const token = req.params.token;
});
router.all('/:userPrefix/:description', async (req, res, next) => {
const userPrefix = req.params.userPrefix;
let message = {