5.0.0 • Published 6 years ago
@ersinfotech/heartbeat v5.0.0
heartbeat
var heartbeat = require('@ersinfotech/heartbeat')
if (process.env.NODE_ENV === 'production') {
heartbeat({
disableDetectRequest: false,
detectRequestInterval: 15, // 分鐘
})
}
options
type Options {
id: String
disableDetectRequest: Boolean = false
disableRestart: Boolean = false
detectRequestInterval: Int = 15
}