Skip to content

Commit 6a9b57f

Browse files
committed
SIP-30 - added MIX_HEARTBEAT_ENABLED to disable the heartbeat
1 parent f50d3ac commit 6a9b57f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/js/heartbeat-manager.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const HeartbeatManager = {
6161
scheduleBeat() {
6262
if (!this.hasHeartbeats()) return;
6363
if (this.beat.handle) return;
64+
if (process.env.MIX_HEARTBEAT_ENABLED !== 'true') return;
6465

6566
const heartbeatRequest = () => {
6667
++this.beat.counter;

0 commit comments

Comments
 (0)