Skip to content

Commit 1eac04f

Browse files
committed
Add heat beat event handler
1 parent 801b226 commit 1eac04f

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

gen/proto/common.pb.go

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/listen/listener.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ func (l *Listener) listen(ctx context.Context, request *pb.ListenRequest, onEven
133133
log.Println("Connected. Start listening...")
134134
case pb.SystemEventType_SYSTEM_EVENT_TYPE_RECONNECT_REQUESTED:
135135
return ReconnectRequiredError
136+
case pb.SystemEventType_SYSTEM_EVENT_TYPE_HEARTBEAT:
137+
// Do nothing, just a heartbeat
136138
}
137139
}
138140
}

0 commit comments

Comments
 (0)