This commit is contained in:
syuilo
2017-08-30 17:45:23 +09:00
parent 631ff6e490
commit 7fe0abc5ce
3 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,11 @@ class Connection extends Stream {
i: me.token
});
// 最終利用日時を更新するため定期的にaliveメッセージを送信
setInterval(() => {
this.send({ type: 'alive' });
}, 1000 * 60);
this.on('i_updated', me.update);
this.on('my_token_regenerated', () => {