You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There doesn't appear to a callback a client can register to be made aware of server disconnect. The server listen socket can definitely detect disconnected clients but not the other way around. After pulling down this crate and adding some println statements, I do see NetConnectionStatusChanged events being published to a default NetworkingSocketsData.connection_callback handler but I don't see a way to register for this outside the library.
I needed a quick and dirty solution to this. I forked, exposed some internal structs and reutilized a channel that wasn't doing anything. It's not pretty but am sharing if others stumble on this issue.
There doesn't appear to a callback a client can register to be made aware of server disconnect. The server listen socket can definitely detect disconnected clients but not the other way around. After pulling down this crate and adding some println statements, I do see
NetConnectionStatusChanged
events being published to a defaultNetworkingSocketsData.connection_callback
handler but I don't see a way to register for this outside the library.Whether the client is connected via p2p or ip doesn't matter. Am I missing something?
The text was updated successfully, but these errors were encountered: