Identify when user leaves wallet connect pending

Hello, you can check the development documents of MetaMask, which may be helpful to you