websocket实现一个后台数据更新, 自动刷新页面的功能,在本地测试过都没有问题,部署以后在火狐上可以,所有谷歌内核的浏览器都会自动断开,没有任何报错,有个提示不知道是不是有关系,有大佬知道怎么解决吗
A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
Note that for performance reasons, only the first access to one of the properties is shown.
1 source
是不是goole浏览器的设置问题
试了下还是不行
贴下服务端socket read代码
– luzemin 2年前@luzemin: 没有报错,也没提示断开,也接收不到消息,在火狐上断开时有输出连接断开
– 团子0621 2年前