Multiplayer - Option for client to Disconnect from Server (Like leave the Lobby)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By venks

Hi,

I m working on a multiplayer project using High Level Multiplayer API. In this I would like to add an option to the clients where they can exit a lobby by clicking on leave button. In a way, when they click on the button, they should be disconnected from the LAN Host. I do not seem to find much information about this. Could you please help me? An example code would be incredibley helpful !!

Just add this when you want to quit : network.close_connection()

Amine BEN SALAH | 2021-06-24 18:06

:bust_in_silhouette: Reply From: njamster

Like this?