From 8a941a951ddfa90da8da2b0d820100e8f12e792b Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <gua@adhisimon.org>
Date: Sat, 24 Oct 2015 13:24:01 +0700
Subject: [PATCH] keepalive

---
 index.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/index.js b/index.js
index 651b94d..fb32d0f 100644
--- a/index.js
+++ b/index.js
@@ -128,3 +128,8 @@ ym.on('ready', onReady);
 ym.on('loginSuccessful', onLoginSuccessful);
 ym.on('pm', onPm);
 ym.on('buddyAddRequest', onBuddyAddRequest);
+
+
+setInterval(function() { 
+    ym.keepAlive();
+}, 5 * 60 * 1000);
-- 
1.9.0