@ersinfotech/heartbeat
v5.0.0
Published
```js var heartbeat = require('@ersinfotech/heartbeat')
Downloads
13
Readme
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
}