- WebSocket connection to 'wss://xny.world:18283/ws/
使用 uniapp 开发的程序:在PC端,能正常进行 wss//xny.world:18283/ws 的连接建立,消息的发送与接收都是正常的,运行到 “微信开发者工具”中 无法访问,真机调试 也是不行。报错:[worker] reportRealtimeAction:fail not support WebSocket connection to 'wss://xny.world:18283/ws/' failed: WebSocket is closed before the connection is established. 可是无法实现访问。请帮忙指导一下,在用uniapp 开发程序,使用 wss(websocket),运行到微信小程序上,有哪些区别及需要注意些什么?谢谢 找到原因了:将最末尾的 "/" 斜杆 去了,就可以。wss://xny.world:18283/ws/ 改为 wss://xny.world:18283/ws。 这得算 微信小程序的一个bug。
05-16 - Let's Encrypt 颁发的证书,域名配置了:域名、域名+端口,任然无法访问。
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html 配置了域名:https://xny.world; https://xny.world:18280; https://xny.world:18281; 任然报错: fail{"errno":600002,"errMsg":"request:fail url not in domain list:xny.world"}
04-21