Iphone Wechat official account embedded h5 websocket is not compatible, the background is written by tomcat's websockt java, Android is fine

1. Detailed description of the original problem

everything in Android is normal, pc chrome simulator is normal, WeChat end on iphone, chrome safari is not working, websocket is not connected, wsurl is normal, onerror event is triggered directly after new websocket , background java, written in tomcat"s websockt, google is not found how to solve, have you ever encountered this kind of problem

2. The difference between ios and Android chrome

I guess whether the browser kernel relies on the operating system, which means that the operating system is the lowest. The browser kernel calls the operating system api, and our front end calls the browser api, so the difference between ios and Android chrome is actually the difference between the two operating systems implemented in the Web standard?
since I am a halfway monk, I don"t know if this guess is correct

3. I don"t know what to do with compatibility

for example, in my current front-end project, there is no problem with the tests of people around us, but the layout is messed up when the boss uses his own mobile phone to experience it (the same phone, the same model). It turns out that his system is not upgraded to ios10, so it would be fine to upgrade

.

then the question is, when I ok on the chrome simulator, I need to test which real machine compatibility, model, browser, version number, these three variables can be combined in most cases, full testing is not realistic, how do you do it?

May.05,2022
Menu