watchOS 不支持 WebSocket
哎。
- apple watch上watchOS网络低级别和高级别区别,以及使用tcp/udp或者websocket的限制条件
- WebSocket connect failed in WatchOS9 beta device, with error”unsatisfied (Path was denied by NECP policy”
- Is it possible to use Web Sockets with Apple Watch? For example using Starscream
- Why is Starscream not working anymore on real Apple Watch (WatchOS 6)?
- Socket Connection doesn’t work on WatchOS 9
See documented Tech Note: TN3135
Only high-level networking is allowed for use in WatchOS, aside from a few low-level networking scenarios listed in the above Tech Note.
Low-level networking will typically always work in the simulator due to using your Mac’s networking capabilities. It also sometimes worked in WatchOS 6-8 due to a bug where restrictions on low-level networking were not working properly, which has been fixed in WatchOS 9.
请参阅技术说明:TN3135
WatchOS 仅允许使用高级网络,除上述技术说明中列出的少数低级网络场景外。
由于模拟器利用了 Mac 的网络功能,低级网络通常始终可以正常工作。在 WatchOS 6 至 8 中,由于低级网络限制存在一个漏洞(该漏洞已在 WatchOS 9 中修复),低级网络有时也可以正常工作。
watchOS 不支持 WebSocket
https://wonderhoi.com/2025/11/11/watchOS-不支持-WebSocket/