我正在使用 react-native-meteor,并且无法仅使用 iOS 连接到 Web 套接字。我的应用程序在 android 模拟器上运行时运行良好,但在 iOS 模拟器或设备上无法运行。这是我的代码:
Meteor.connect('ws://app.mysite.com/websocket');
和日志:
[info][tid:main][RCTBatchedBridge.m:72] Initializing <RCTBatchedBridge: 0x7fe23b23d4c0> (parent: <RCTBridge: 0x7fe239d65090>, executor: RCTJSCExecutor)
[warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
Disconnected from DDP server.
知道为什么我不能仅在 iOS 上连接吗?
我已经禁用了 App Transport Security,并下载了一个非 https 网页,所以我知道这不是问题