Keeping Thread between levels

Hi,

In the BeguinPlay method of my GameMode i create a thread which connect to a server.
In this server I store information about the different users.

Now i need to change level but i want to keep those information and the thread running.

Which function do you recommend me.

openLevel() but it destory the gamemode
ServerTravel() but it also destroy the gameMode
PrepareMapChange/CommitMapChange it keep the gameMode but all the meshes and actors of the previous level are still alive.

I could store the data in the GameState or something and don’t kill the thread when the gameMode is killed but the BeguinPlay() method will be called an other time.

Keep it in your GameInstance - that is place for all your global data.

And how to access GameInstance in Blueprint of e.g. game level?

There is a node for just that.