可以在 Apple Watch 上使用 Web Sockets 吗?例如使用红蜘蛛

Is it possible to use Web Sockets with Apple Watch? For example using Starscream

Apple Watch 支持网络套接字吗?是否可以使用像 Starscream 这样的外部库? https://github.com/daltoniam/Starscream

我试过了,是的,它有效!!! Apple Watch 支持网络套接字 ;)

编辑:

它不再适用于 WatchOS 6/6.1 :(

前往此处了解更多信息:Why is Starscream not working anymore on real Apple Watch (WatchOS 6)?

红蜘蛛无法在 watchOS 上使用 SSL,因为它缺失 "the kCFStream properties"