pub type OnDisconnect = Arc<dyn Fn() + Send + Sync>;
Callback invoked when disconnected from the server
pub struct OnDisconnect { /* private fields */ }