This commit is contained in:
syuilo
2018-03-03 14:42:25 +09:00
parent 12f472b3fc
commit bec7ed723b
3 changed files with 56 additions and 50 deletions

View File

@@ -66,6 +66,10 @@ export default async function(request: websocket.request, connection: websocket.
const msg = JSON.parse(data.utf8Data);
switch (msg.type) {
case 'api':
// TODO
break;
case 'alive':
// Update lastUsedAt
User.update({ _id: user._id }, {