Skip to content

Conversation

@Rentacookie
Copy link
Collaborator

This changeset adds the definitions and parsing for Heartbeat and Hearbeat_V2 binlog events.

This allows specifically listening for those events on the binlog. PowerSync uses these events as a keepalive mechanism.

Copy link

@rkistner rkistner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of interest, when would we get a Heartbeat vs Heatbeat_V2 event?

@Rentacookie
Copy link
Collaborator Author

Rentacookie commented Aug 6, 2025

Just out of interest, when would we get a Heartbeat vs Heartbeat_V2 event?

Supposedly MySQL versions newer than 8.0.26 should be transmitting the V2 events. I say supposedly, because my test container which is running version 8.4 still emits the older events 😑

Either way I figure we handle both types just in case.

@Rentacookie Rentacookie merged commit 1abb7b7 into main Aug 6, 2025
3 checks passed
@Rentacookie Rentacookie deleted the add-heartbeat-event-parsing branch August 6, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants