Logged-on interface requires key information to be logged on the Login.do interface: USERID, device model ( Android | iPhone ), logon time, login IP, device unique identifier ( UUID )
When the same account is signed in on another new device, the relevant login device information corresponding to the UserID is overwritten directly, if the old device is re-connected, because the UUID is not the UUID of the current server, it will return directly 下线通知 , and the main information ( 设备型号 , 时间)
Login.do and chat-web.do do not communicate directly before, to avoid the consumption of each other calls and the system, im-web with a userid key for storage, when reconnecting Im-web found with the current cache device unique identity () is not consistent with the UUID prompt 下线通知, if it is consistent, you can reconnect it and return the domain name and port of the IM instance that is available to connect to.
The above thinking is based on the mobile phone QQ and the test results, the reverse derivation, may be wrong.
App Top number Logic