XITRIX / Moonlight-Switch

Moonlight port for Nintendo Switch
770 stars 47 forks source link

[Feature Request] Auto Reconnect Upon Wake-Up #160

Open orcavia opened 1 month ago

orcavia commented 1 month ago

I understand that the Switch automatically disconnects from the network when the system is suspended, so when the system wakes up, you need to select the app to resume the session.

Additionally, when opening a session via a forwarder, the software immediately closes once the system wakes up, and you need to launch the software again to resume the session.

I know a single tap isn't too bothersome to resume the session, but it would be better if it could automatically reconnect instead of immediately closing. This would make the experience feel more seamless. :)

XITRIX commented 1 month ago

Need to check if it possible, because I’m afraid that termination by suspend could be the same signal as if Host will ask Client do disconnect, I’m not sure if I can distinguish this two events, and as you understand, reconnect on proper termination by Host request will be incorrect behavior. I need to check, if I’ll be able to separate this two behaviors, I’ll try to implement reconnect, otherwise I’m not sure what I’ll be able to do