Just read apple low-level networking on watchOS policy
https://developer.apple.com/documentation/technotes/tn3135-low-level-networking-on-watchos
And some discussion about restriction for Websocket using on watchOS
https://developer.apple.com/forums/thread/679628
So I know the situation is,
“There’s no supported way to implement WebSocket on watchOS except in the context streaming audio.”
And my App is a voice interaction based app(just like Siri), user can speak to our app to get real-time feedback.
So we need to do ASR(automatic speech recognition) to user speak audio data first. Our current solution is record user speak audio and transfer audio data to our ASR server by websocket.
(We use Starscream https://github.com/daltoniam/Starscream, to connect websocket)
It works well on IOS and watchOS 8.7, but can not connect to our ASR server after watchOS 9.0.
I think our app is kind of “streaming audio” app, Just wandering, is it possible to use websocket in my case, should I try URLSessionWebSocketTask to implement the audio data transfer? Or I can’t implement this feature by websocket at all ?
Thanks.