# Lobby Heartbeat

This is an optional node for when you have Heartbeat Monitoring enabled in your Lobby.

<figure><img src="https://599571038-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJOLYZsEpI3ofbnXUKMb9%2Fuploads%2FknuHdfmixHpXReeH7zSb%2FUE4Editor_UUhUgUKB80.png?alt=media&#x26;token=2504823b-bb68-460f-b4cc-b69884497735" alt=""><figcaption></figcaption></figure>

This takes in the default nodes, but requires your Player ID. That's it. Once this is passed off, the Lobby registers the Heartbeat tick to note that yes, you are still alive and are still playing in the lobby.

Recommended Usage:

After you [Create a Lobby](https://duel-studios.gitbook.io/playflow-cloud-for-unreal/lobbies/creating-a-lobby) you should save the **Lobby ID** then have an event in your Game Instance Class. Since this class is always existing, no matter if you change levels, etc; you'll be able to continuously use the Lobby Heartbeat Node to ensure that you don't get booted/your lobby doesn't shut down. You should call this Heartbeat about every 15-20s before the Heartbeat Monitor kicks in so that you stay in the lobby. Heartbeat Monitoring requires a minimum of 30 seconds between hearts on Playflow, so we do Heartbeats more frequently to ensure we don't miss a tick.

<figure><img src="https://599571038-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJOLYZsEpI3ofbnXUKMb9%2Fuploads%2FJaKlkAnx6zEbmKxrjhwv%2Fimage.png?alt=media&#x26;token=53186198-7c98-4bf8-aed7-10825b092af9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://599571038-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJOLYZsEpI3ofbnXUKMb9%2Fuploads%2F07GOuqsaLmJxCsVSLTEq%2Fimage.png?alt=media&#x26;token=c8295523-2c65-43f6-8dc0-a9987c8f38bc" alt=""><figcaption></figcaption></figure>
