Closed Lightnet closed 1 year ago
Using bevy_renet
, to host a server, close it, and connect to another server can be achieved by:
RenetServer
and NetcodeTransportServer
resourcesRenetClient
and NetcodeTransportClient
resourcesIf you have any problem trying to achieve this you can reopen it. But it is possible to do what you described following the steps above.
Is there better way to handle switch server and client? Meaning to host the server and disconnect and join another server without need to start app. Not sure where it close network to clear up the data.
I look into the code a bit there no shutdown or disconnect from server or client. There should be clean up for those config?
Or I could be wrong. Need to single plugin just need to pass insert_resource for server and client to alt for testing. As there remove resource to handle close connection?