summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-08-30 17:45:23 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-08-30 17:45:23 +0900
commit7fe0abc5cec71759807a41f383606dd156f11d88 (patch)
tree47047bcfd5d49fcba1d1b8cb3007df56b4678cd2 /src/web/app/common/scripts
parent:v: (diff)
downloadsharkey-7fe0abc5cec71759807a41f383606dd156f11d88.tar.gz
sharkey-7fe0abc5cec71759807a41f383606dd156f11d88.tar.bz2
sharkey-7fe0abc5cec71759807a41f383606dd156f11d88.zip
Implement #745
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/home-stream.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/app/common/scripts/home-stream.js b/src/web/app/common/scripts/home-stream.js
index c54cbd7f19..de9ceb3b51 100644
--- a/src/web/app/common/scripts/home-stream.js
+++ b/src/web/app/common/scripts/home-stream.js
@@ -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', () => {