为什么真机调试websocket连接error 而在开发者工具上可以?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 17:30 820 0 全屏看文

AI助手支持GPT4.0

为什么真机调试websocket连接error 而在开发者工具上可以?

appID用的是测试号的

socket连接地址是wss+域名+/websocket 做了nginx转发

游戏引擎用的白鹭引擎

报错 ioError

Appid uses the socket of test number, and the connection address is WSS + domain name + / websocket. Nginx is used to forward the game engine. The egret engine reports an error ioerror

回答:

ye:

没在后台配置域名吧,加了域名可以不开调试也能进

冰箱:

开了调试模式?

道隐无名:手机开调试模式?
冰箱:是的,不开的话你要到后台配置合法域名

-EOF-

AI助手支持GPT4.0